Friday, December 31, 2010

Friday December 31st 2010

Last day of 2010.


Index.html
<html>
<head>
<title>Submit() method example</title>
<script language="JavaScript">
function submitForm(){
alert("Going to submit form");
document.frm.submit();
}
</script>
</head>

<body>
<div style="background:#ff9900; width:'90%';" align=center>
<font color="#0000ff" size="12pt">
<b>Submit() Example</b>
</font>
</div>
<center>
<form name="frm" action="SuccessPage.html">
<P>Click on the following link to submit form</P>
<a href="javascript: submitForm();">Submit Form</a>
</form>
</center>
</body>
</html>


SuccesPage.html


<html>
<head>
<title>Submission success page</title>
</head>
<body>
<div stlye="background:#ff9900; width: '100%';" align="center">
<font color:#0000ff" size="12pt">
<b>Success Page</b>
</font>
</div>
</center>
<P>Great! You have submitted the form successfully</P>
<center>
<a href="javascript:history.go(-1);">Go Back</a>
</center>
</body>
</html>

No comments: