Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library


Category: Javascript Codes Library >> Alerts >> Ask & Print Visitors Name

Code Snippet </> Info

Snippet Name: Ask & Print Visitors Name

Description: Easily personalize your visitors experience by asking their name and print it on the page.

Compatible Browsers:
Chrome BrowserFirefox BrowserInternet Explorer BrowserOpera BrowserSafari Browser

Example: View Code Demo

Note: Adjust var name question to your preference.

Author: SnapBuilder <>

Last Modified: 2019-12-09 02:19:43

Language: javascript

Highlight Mode: javascript

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor

  About Copying
Copied To Clipboard!

<html> <head> <title>Ask & Print Visitors Name</title> </head> <body> <script> // Begin Name Prompt from Free Public Codes Library // Free to use as long as the credit lines remain in place { var name = prompt ('Please Enter Your Name',''); document.write("<center><font-face=arial,verdana color=#000 size=4>Welcome To SnapBuilder, "+name+".</font><hr noshade width=500></center>") } </script> <br /> [ YOUR CONTENT GOES HERE ] </body> </html>

[ Snippet Options ]


© 2002 -  Snap Builder Public Codes Library