Friday, February 8, 2008

Javascript 2

This function is used to create a return message to user after user submits their comments.

function display_confirm()
{
var r=confirm("Press ok button to submit");
if (r==true)
{
document.write("Your comment have been submitted thank you!!");
}
else
{
document.write("You pressed Cancel return back to home!!");
}
}
Please view here..
http://www.rit.edu/~gxs8938/rit737/finalindex.html

No comments: