In my asp.net application i have written a javascript function to display
messagebox having yes no button .
heres the code:
function showmessage()
{
var a=app.alert("do you want to save?", 2, 2, "save");
if (a==4)
{
//do something
}
}
when i execute my application on button click which calls this function, i get an error 'app' undefined.
I tried a lot but not getting the solution. Please tell why its raising error and how it can be solved. Please reply at the earliest.
Thanks in advance.
var a=xfa.host.messageBox("do you want to save?", "save", 2, 2);
if (a==4)
{
//do something
}