It's not a secret anymore!*
The moose likes HTML, CSS and JavaScript and the fly likes Jscript is not running in IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Jscript is not running in IE" Watch "Jscript is not running in IE" New topic
Author

Jscript is not running in IE

Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Jan 10, 2002
Posts: 60740
    
  65

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jscript is not running in IE
 
Similar Threads
Which submit button was clicked?
window.open()?
JavaScript and JApplet
clearing file input
Session destroy on window close