hi all
i am calling one function after another.
The below code shows a confirmation box and redirects to yahoo.com
Code:<script type="text/javascript"> function todo(){ window.location="http://www.yahoo.com"; } function conf(){ if(confirm("do you want to exit")) { todo(); } } </script>
Now instead of confirmation box if i show an alert box then the redirect doesnt works. why.
vineetCode:<script type="text/javascript"> function todo(){ window.location="http://www.yahoo.com"; } function conf(){ if(alert("you are now going to exit")) { todo(); } }



Reply With Quote

Bookmarks