Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

document.write("<SCRIPT src='ext.js'><\/SCRIPT>") für Netscape

Netscape kills line

9:09 am on Sep 27, 2002 (gmt 0)

New User

joined:Jan 16, 2013
votes: 0


I want to write the content of a frame via a script.
Also an external JavaScript should be reverenced.
(in IE it works - in Netscape it doesn't!)

Doing a
document.write("<SCRIPT src='ext.js' type='application/x-javascript'><\/SCRIPT>")

just does not appear!

even a
k.write("<SCR"+"IPT src='ext.js' type='application/x-javascript'><"+"\/SC"+"RIPT>")

is not shown!

Doing a
k.write("<SCRIP_ src='ext.js' type='application/x-javascript'><\/SCRIPT>")

the line is displayed - but of corse it does not work....

Any Idea?


10:29 am on Sept 27, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 25, 2002
votes: 0

I have a feeling (at least in newer browsers) the type is "text/javascript", for example i use this

type="text/javascript" src="/jscript/datehandler.js">

Also you might need to assign the language

- Tony

9:34 pm on Sept 27, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
votes: 0

Can you reference a script inside another script like this? I mean is it meant to work, or is it just a quirk that it works in IE?
12:54 am on Sept 28, 2002 (gmt 0)

Junior Member

10+ Year Member

joined:July 13, 2002
votes: 0

Yes, it works fine in N4, N6 and Opera as well.