C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






Popup Boxes in Javascript


Posted Date: 20 Jun 2008    Resource Type: Code Snippets    Category: Javascript

Posted By: Kapil Dhawan       Member Level: Gold
Rating:     Points: 2



Popup boxes are controls that give/take information tofrom the user. There are instances when the user should be warned about something, or there are instances where in we need some information from the user (eg: user's age, confirming submissions,etc.). In such scenarios pop up boxes are useful.

An important point to notice about popup boxes is that they are blocking. That is, they immediately capture the attention of the user, and unless attended they block the page from the user.

There are three types of Popup boxes in javascript. Each popup box is followed by a code sample. These examples are to be used under %LT;script> tags.

Alert Box:

alert('This is Alert box');


Confirm Box:


Confirm('This is Confirm box');

confirm box comes with OK and CANCEL button.
OK will return true and CANCEL will return false.

Prompt Box:


Prompt('This is Prompt box','this is prompt default value');





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Popup boxes in javascript  .  Popup box in javascript  .  Pop up boxes  .  Pop up box  .  Input box  .  Confirm box  .  Alert box  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Change the Background Colour of a Cell using Javascript
Previous Resource: Using Regular Expression in JavaScript
Return to Discussion Resource Index
Post New Resource
Category: Javascript


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

web conferencing

Contact Us    Privacy Policy    Terms Of Use