prompt() is used to get the text box.
Example:
prompt("Enter your name :");
A blog about Java technology tutorials and articles. It mainly focus on publishing the Hello world examples/tutorials of Java/JEE technologies. The advanced java technology such as JAX-RS,Jersey,Hibernate,JSF,EJB etc... tutorials are already covered in this blog.
Tuesday, January 5, 2010
How to give Alert/Messsge box in JavaScript?
alert('your message to be popped up');
Example:
< input type="button" value="Example" onclick="alert('your message to be popped up');return true" />
If you open this code with the Browser then you can see a button named with "Example".
If you click on it it will popup a message box with the message 'your message to be popped up'.
Example:
< input type="button" value="Example" onclick="alert('your message to be popped up');return true" />
If you open this code with the Browser then you can see a button named with "Example".
If you click on it it will popup a message box with the message 'your message to be popped up'.
Subscribe to:
Posts (Atom)