Click to See Complete Forum and Search --> : Javascript syntax error Solution


sappi_01
04-24-2007, 12:37 PM
Hello,

Here i am getting error message box with the following when i am running javascript file.

Script C:\...\dateprint.js
Line 1
char 1
Error Syntax error
Code 800A03EA
Source Microsoft Jscript compilation error

Please can any body tell how to solve this problem to run Javascript run successfully.

Thanks in advance
swapna

sftrprod
04-24-2007, 12:38 PM
Could you post the first few lines of code, please?

sappi_01
04-24-2007, 12:47 PM
<html>
<body>

<script type="text/javascript">
<!--
document.write(Date())
// -->
</script>

</body>
</html>

sappi_01
04-24-2007, 01:04 PM
sftrprod ,

Thanks for given reply.I hope i will get reply with the solution.

swapna

Tweak4
04-24-2007, 01:19 PM
The supplied code, while woefully incomplete, does not generate any syntax errors in FF2 or IE6.
Is the code you posted the contents of your dateprint.js file? If so, you'll need to remove all of the html so that the file contains nothing but the 1 line of actual script.