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)


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 Sep 27, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

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 Sep 27, 2002 (gmt 0)

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

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 Sep 28, 2002 (gmt 0)

10+ Year Member

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

Featured Threads

Hot Threads This Week

Hot Threads This Month