ive got
I want to change it so if the user doesnt click OK, the script dies and doesnt do anything else.Code:<SCRIPT language="JavaScript"> <!-- function go_there() { var where_to= confirm("Do you really want to go to this page??"); if (where_to== true) { window.location="http://yourplace.com/yourpage.htm"; } else { window.location="http://www.blahhhh.com"; } } //--> </SCRIPT>
Ive tried taking the else section out, but it still redirects to the first URL even when you click cancel.
Any offers ?
Thanks.


LinkBack URL
About LinkBacks
Reply With Quote

