i have been playing with Alerts and was wondering if someone can anwser a few questions for me.
Response.Write "<SCRIPT>"
Response.Write" alert('Hello...');"
Response.Write "history.back();"
Response.Write "</SCRIPT>"
Response.end
OK, when this alert gets fired off it brings up a messagebox saying "Hello" with an OK button. once the button is pressed it goes back to the page where the button was pressed.
How do you use Yes/No Alerts?
my next question is once I am using Yes/No alerts, how do I code something behind the yes or no buttons? say I throw up an alert asking "Do You Wish to Lof Off?" if the user hits Yes, I will redirect him somewhere else. If the user hits No, I will put him to the last page.
any thoughts or help would be appreciated
Thanks
Response.Write "<SCRIPT>"
Response.Write" alert('Hello...');"
Response.Write "history.back();"
Response.Write "</SCRIPT>"
Response.end
OK, when this alert gets fired off it brings up a messagebox saying "Hello" with an OK button. once the button is pressed it goes back to the page where the button was pressed.
How do you use Yes/No Alerts?
my next question is once I am using Yes/No alerts, how do I code something behind the yes or no buttons? say I throw up an alert asking "Do You Wish to Lof Off?" if the user hits Yes, I will redirect him somewhere else. If the user hits No, I will put him to the last page.
any thoughts or help would be appreciated
Thanks