Javascript Display prompt get input from user
Javascript Display prompt get input from user
Javascript Display prompt get input from user
We can use simple javascript here to prompt an input field for your visitors to enter their name for the website. Once they have done that and clicked OK their name will appear in the web page along with the rest of the content. Interesting script, Just copy paste the code below on an html file save it and run it yourself to see the output. Enjoy 🙂
<SCRIPT LANGUAGE="JavaScript"> <!-- Hide this from older browsers var value = window.prompt("What's your name?,Question From Mistonline.in :)"); window.document.write ("Welcome , "); window.document.write (value); // end hide --> </SCRIPT> <div id="Main_Page"> Rest of the webpage content goes here. </div>Javascript Display prompt get input from user,
it has all what i want…good one..
good one perhaps…
hi..