faqts : Computers : Programming : Languages : JavaScript : Document

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

4 of 8 people (50%) answered Yes
Recently 0 of 4 people (0%) answered Yes

Entry

How to assign the content of external *.js file to a variable(IE)?

Aug 31st, 2000 08:16
Martin Honnen, Peter Ned,


.js files are intended to be included in a .html document with the 
SCRIPT tag:
  <SCRIPT SRC="file.js"></SCRIPT>
If you really want to load the content of a text file into a JavaScript 
variable check
http://www.faqts.com/knowledge-base/view.phtml/aid/1268/fid/126