techie troubleshooting blog
Friday, 29 July 2011
What Javascript could be used to display an alert style message of “Close Form, Are you sure?”, and then depending on the answer, close the current window?
var r=confirm("Close Form, Are You Sure?")
if (r==true)
{
//close the form
CurrentWindow.Close
}
else
{
//do nothing
return
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment