<script type="text/javascript">
function show_prompt()
{
var name=prompt("Please enter your name","Harry Potter");
if (name!=null && name!="")
{
document.write("<p>Hello " + name + "! How are you today?</p>");
}
}
</script>
<input type="button" onclick="show_prompt()" value="Show prompt box" />
EJBgutausse January 5, 2012 at 1:55 AM
I would have liked to see an example worked through using code if possible.
adfktoby March 1, 2012 at 12:29 PM
<script type="text/javascript"> alert("I am an alert box!"); </script>
jsalftoby March 1, 2012 at 12:31 PM
<script type="text/javascript"> function show_prompt() { var name=prompt("Please enter your name","Harry Potter"); if (name!=null && name!="") { document.write("<p>Hello " + name + "! How are you today?</p>"); } } </script> <input type="button" onclick="show_prompt()" value="Show prompt box" />
helloswati July 4, 2012 at 1:27 PM
This definition is very.......i can easily understand ejb to of this site.
commentNaik Vaishnav July 10, 2012 at 11:41 AM
Its good
Post your Comment