homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

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

Msg#: 200 posted 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?




WebmasterWorld Senior Member 10+ Year Member

Msg#: 200 posted 10:29 am on Sep 27, 2002 (gmt 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


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

Msg#: 200 posted 9:34 pm on Sep 27, 2002 (gmt 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?


10+ Year Member

Msg#: 200 posted 12:54 am on Sep 28, 2002 (gmt 0)

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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved