Mike41692 Posted February 21, 2006 Share Posted February 21, 2006 can someone tell me how to make a prompt box and then when people press ok it will link them to another page of my webiste Link to comment Share on other sites More sharing options...
real_illusions Posted February 21, 2006 Share Posted February 21, 2006 something like this you mean?http://www.w3schools.com/js/tryit.asp?filename=tryjs_confirmread the tutorials first to find what your looking for Link to comment Share on other sites More sharing options...
Chocolate570 Posted February 22, 2006 Share Posted February 22, 2006 He's right, read the tutorials, but your example is wrong, real.This is the code: <script type="text/javascript">var url="put the url of the website you wanna go to"var yesorno=confirm("Wanna go to another site??")if(yesorno==true){window.location=url}</script> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now