onClick Prompt Href Javascript Code -


is possible make button whenever person clicks prompt shows when enters age or name redirects him page. in advance.

http://jsfiddle.net/ultimate/wfrsn/

$('#prompt').click(function(){    var name = prompt("enter name");     if(name != ""){         window.location = "http://www.example.com/" + name;     } else {         alert("you did not fill in name!");     } }); 

something that?


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -