Welcome to WebmasterWorld Guest from 54.147.10.12

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
posts:
votes: 0


Hi,

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?

regards
Andy

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 25, 2002
posts:872
votes: 0


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

<script
language="JavaScript"
type="text/javascript" src="/jscript/datehandler.js">
</script>

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
posts:18903
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
posts:133
votes: 0


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