Handy
Tip : Some browsers now incorporate popup blockers as standard
features so keep in mind that popup prompt scripts can be blocked.
|
Bookmark
This Page
How to make JavaScript
prompts
A
JavaScript prompt is a popup window that asks for information from your
visitor.
Below is a script that will ask your visitor for their name and then display
their name on the corresponding page.
Add this javascript code into your <head> tag of your pages
html:
Then add the code
below into your <body> tag where you want their name displayed on your page:
Where
I have "Welcome" you can change this to whatever you wish.
|