|
Request user's name for title
| Language: |
JavaScript |
Unrated
Rated by 0 Users
1 Star = Horrible 5 Stars = Perfect
Rate Code Now
|
| Posted By: |
Blake |
| Author Website: |
Differences between ASP and PHP |
| Posted On: |
8/28/2007 |
| Code Views: |
670 |
This will ask for a user's first name, then will display it in the title bar of their browser
|
<head>
<script type="text/javascript"> var myInput; myInput = prompt("Enter your first name:"); document.write("<title>Welcome, " + myInput + "!</title"); </script> </head>
View code in Textarea
This code has not been tested by Your WebCode. Use it at your own risk.
Please report any copyright violations.
|
|