real_illusions Posted December 4, 2005 Share Posted December 4, 2005 Hi, how do you insert an external javascript in the head section?i've tried the code in the tutorials..but that doesn't work.. Link to comment Share on other sites More sharing options...
hacknsack Posted December 4, 2005 Share Posted December 4, 2005 real_illusions,The most common mistake is that a set of "script" tags is included in the external file.Make an external file like(test.js): alert('Our file just loaded..'); Put this inside your head or body tags: <script type="text/javascript" src="test.js"></script> The next most common mistake is not having a valid path to the external file.Thanks, Link to comment Share on other sites More sharing options...
real_illusions Posted December 5, 2005 Author Share Posted December 5, 2005 real_illusions,The most common mistake is that a set of "script" tags is included in the external file.that was my mistake...i didn't know about taking the script tags out.thanks:) Link to comment Share on other sites More sharing options...
hacknsack Posted December 5, 2005 Share Posted December 5, 2005 You're Welcome.. :)Glad you got it working. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now