Im using to followong code....
<html> <head> <script type="text/javascript"> function disp_prompt() { var name=prompt("Please enter your name","Your name") if (name!=null && name!="") { document.write("Hello " + name + "Thankyou for visiting. please continue to <a href="http://warbz18.aexwow.com"> Warbz's Webpage</a>") } } </script> </head> <body> <input type="button" onclick="disp_prompt()" value="Click me to continue." /> </body> </html>
basically i want the user to click the "click me to coninue" box then a pop up asking for there name appears, then it will say welcome, etc.
then when they click on the dialogue box with the greetin, it will forward them to the appropriat epage of the website.
I have a feeling part of the prob is that im using a html script within the javascript. but i dunno how to make links in javascript.
any help is greatly appreciated.
Edited by Warbz, 26 November 2007 - 15:23.