Forum Moderators: open

Message Too Old, No Replies

How to refer to an external javascript?

         

Italian_guy

12:43 am on Jan 24, 2004 (gmt 0)

10+ Year Member



I have this code <script language="JavaScript" src="password.js"></script> and I'm writing the js for my login in a password.js kept in the same dir... the problem is that doesnt work. Any suggestion?

Thanks

Birdman

2:52 am on Jan 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Make sure you don't use the <script> tags in the .js file.

Also, try using an absolute URL (http://..) to access the script so you can rule out malformed link.

Italian_guy

10:05 pm on Jan 24, 2004 (gmt 0)

10+ Year Member



Thanks! It's exactly whatI was missing.