html message box, how to show html message box, how to display message box, javascript, yes / no confirm message box, tips, guide show html message box
(Website Helper) show html message box Number of Visitors: Site Map

show html message box



Website Design
Website Promotion
Graphic Design
Programming
Free Software
Computer Tips
Discount Stores
This site provides users with the information about html message box, how to show html message box, how to display message box, javascript, yes / no confirm message box, tips, guide, and more.

If you think that this site is helpful, please recommend your friends to visit our site.



In your html page design, sometimes you need to use message box to show the online help or give the surfers additional information. To perform this task is quite simple. The following is how to show message box on your html web page.

1. You need to add the following script between the <HEAD> and </HEAD> tags:



<script type="text/javascript">
function show_alert()
{
alert("This is the html message box for help!");
}
</script>

2. And then insert code below into your <BODY> and </BODY> tags:

<input type="button" onclick="show_alert()" value="Help" />

Finally, let us give an example of "Yes" or "No" confirm message box:


<html>
<head>
<title>Software Feedback Form</title>
<SCRIPT LANGUAGE="JavaScript">
      
function confirmAction() 
{
    return confirm("Do you really want this subscription?")
}
   
</SCRIPT>
</head>
   
<body>
<h2>Software Feedback Form</h2>
<form action="mailto:feedback@anydomain.com" method="POST" 
name="FeedbackForm" onSubmit="return confirmAction()">
<ol>
<li>
Where did you get our software information?

<input type=checkbox name="C1-SKU01" value="fd01">Internet
<input type=checkbox name="C1-SKU04" value="fd02">Email
<input type=checkbox name="C1-SKU07" value="fd03">Friend

</li>
<li>Please enter the reason for your downloading:

<textarea name="Comments" rows=6 cols=46/></textarea/></li>
</ol>

<input type=submit name="Submit" value="Submit"> </form> </body> </pre>

(Website Helper) show html message box (c) EduSoftMax - www.edusoftmax.com