|
|
Alerts and Prompts
JavaScript » Scripts and Programs » Alerts and Prompts
A D V E R T I S E M E N T
Today's Special: Get free Magazine from SAP!
Warning - FreeThis script displays an alert box to your visitors if their browser configurations (navigator and resolution) are not the best for viewing your site. Say welcome - FreeThis JavaScript displays an alert box to your visitors to welcome them on your site or to suggest them to visit your partners' sites. Say goodbye - FreeThis script allows you to display an alert box to thank your visitors for visiting or ask them to visit your partners. DHTML Ad Box - FreeThis DHTML ad script displays an "inexcusable" box in the middle of the page, broadcasting ads of your choice inside. The box automatically disappears after x seconds, with its display frequency configurable. Confirm Test With Results Computed - FreeThis JavaScript allows you to have a test run using confirm alerts to have the user enter in TRUE or FALSE for each question. The results are computed and then given (via a popup) to the user.
This test is easily modified by just adding a new question,answer pair. Check Answer Twice With PromptThis JavaScript prompt users for an answer, and check the input twice before stating (s)he is wrong. Confirm Alert Box - FreeThe author notes, "The JavaScript confirm alert box differs from a regular alert box in that it provides two choices for the user, OK and Cancel. Typically, you’ll see confirmation boxes utilized on links where the destination is outside the domain of the page you’re currently on or to alert you of potentially objectionable material. The following example will display a confirmation alert box when either a link or form button is clicked. Once either OK or Cancel are selected an alert box will follow to display which was chosen." Button Click Call Alert - FreeThis JavaScript shows a very simple example of how to create a button that does something JavaScript-like in nature when it is clicked. The alert() function is predefined: we could have made our own function and then called it upon the onClick event. Alert Box - FreeHere is a simple JavaScript example which will generate a simple alert box based on clicking a link or a form button. Useful for alerting users for missing fields, displaying a message on document open or close, or informing users they’ve clicked a link, etc. Help Popups - FreeHere's a quick and easy way to add MS Windows-style popup help boxes to your Web site. Many customization options are available. DHTML Announcement Box - FreeUse this custom DHTML "widget" to uniquely present new or notable pieces of information to your visitors. The interface is cross browser compatible, and can be dragged/ hidden freely by the user.
Add to Favorites - FreeAuto-prompt users to bookmark your homepage using this simple IE-only script! This script uses a simple browser detect which activates or avoids an alert box. This is a simple, yet effective use of this IE-only feature. Bookmark Me! - FreeThis JavaScript uses an onUnload function to prompt the user to bookmark a page while exiting a page. It's a simple script but is a nice introduction to the onUnload function. Random Quote Alert - FreeThis JavaSscript allows you to display an alert with a random quote selected from a set of 10 when the viewer clicks a button. You can easily assign any alert messages to the script. Javascript Domain Whois - freeDo you frequently look for the availability of domain names?
I wanted an easy way to query domains so, I created an internet shortcut for Internet Explorer that can be used to do whois lookups.
This is written in Javascript and works so that users can drag a WHOIS LINK to thier Internet Explorer links bar and then either highlight a domain name on the page with your cursor and click the whois link or just click the whois link and have a Javascript prompt for you to enter a domain.
|
A D V E R T I S E M E N T
|
Subscribe to SourceCodesWorld - Techies Talk |
| |
|