Ok, I am new at javascript programming. I created a html document with some javascript in it but when I ran it in IE it came up with this error: Line: 7, Char: 8, Syntax error, code: 0
The html code is:
<HTML>
<body background="images\fish10.gif">
<script type="text/javascript"src="functions.js"> </script> <p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p> <br><p><br><p><br><p><br> <p><br><p><br>
<font color="#E31116" size="5">
<marquee type="scroll" direction="left"><strong>This Page is under Construction!</marquee>
<input type="submit" value="go to Google!" onClick= javascript:return() >
</body>
</HTML>
The functions.js code is:
function passwordsubmit()
{
A=document.passfrm.passbox.value
if (A=="prayer1")
{
showblog()
}
else
{
alert("The password is incorrect!")
}
}
function showblog()
{
document.location.href='Prayers.html' var dirty=false
}
function return()
{
window.location='
}
The html code is:
<HTML>
<body background="images\fish10.gif">
<script type="text/javascript"src="functions.js"> </script> <p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p> <br><p><br><p><br><p><br> <p><br><p><br>
<font color="#E31116" size="5">
<marquee type="scroll" direction="left"><strong>This Page is under Construction!</marquee>
<input type="submit" value="go to Google!" onClick= javascript:return() >
</body>
</HTML>
The functions.js code is:
function passwordsubmit()
{
A=document.passfrm.passbox.value
if (A=="prayer1")
{
showblog()
}
else
{
alert("The password is incorrect!")
}
}
function showblog()
{
document.location.href='Prayers.html' var dirty=false
}
function return()
{
window.location='
}