Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jscript is not running in IE

 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Heloo all,

My simple Java Scrpit file (first.js) is not working (showing some error message)in IE. can you pls tell what i should do?

Regards,
rahul

<html>
<body>
<script type="text/javascript">
document.write("Hello World!")
</script>
</body>
</html>
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is not a JavaScript file but an html page. A js file is

<script type="text/javascript" src="someFile.js"></script>

where the js would contain document.write("asdf");

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rauhl roy, a point of order:

Originally posted by rauhl roy:
can you pls tell what i should do?


"pls" is not a word. Please show the respect due to those who will answer your questions by taking the few extra milli-seconds that it takes to type out "please".
[ September 15, 2006: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic