| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
|Accredited PayPal World Seller|
|Need document.write('<SCR' + 'IPT>') Help|
How do you pass variables to the external script?
| 9:05 pm on Feb 3, 2005 (gmt 0)|
OK, so you have this in a test.js file:
Normally, one could have a script section before calling the script calling the external file, but I can't seem to get that to work.
In other words, how can I pass variables calculated in test.js to the external script whatever.js?
| 12:53 am on Feb 4, 2005 (gmt 0)|
You don't need to pass anything. They both merge into one big script.
Any variables defined in the script before the doc.write() can be used in the 'imported' part of the script.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved