faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

31 of 53 people (58%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

how can I get 2 scripts to work on the same page in both NN and IE, I tried including the unload for both in the body but it only works in IE.

Apr 4th, 2008 19:35
ha mo, Henk-Johan van Rantwijk, Hatto von Hatzfeld, Syntia Solomon,


OK in the <HEAD> section of your page you will need to put tsomething
like this in:
<script language="JavaScript1.2" src="../javascript/jscript1.js" type=
"text/javascript">
</script>
<script language="JavaScript1.2" src="../javascript/jscript2.js" type=
"text/javascript">
</script>
jscript1.js and jscript2.js are then loaded for use in IE and NN.
You may call any function in jscript1.js and/or jscript2.js
As I recall I'am using 5 or 6 javascripts on everypage at
:go.to/spacetubbies
Works fo me!
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com