Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem loading JS to html file.

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi!

I defined several variables on JS file called xxx.js and add the following row to my html file:
<script language=&quot;JavaScript&quot; src=&quot;xxx.js&quot;></script>.
Then, I'm using those js variables in the html file.
Problem is that the js is not all loaded.The alert I got saying that js variables were not defined.
Problem accure just on small html files.If I do the same actions on much bigger file- js is well loaded.
Is there any relation to file size?
Why js wasnt well loaded?

Please help.
 
Hey kerenet,

Calling an external js file into your doc has no relation to the file size. Where in the HTML doc are you calling the js file? Make sure the script call is being executed before you call the js variables in the external script.

Greg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top