jini01 Posted February 9, 2007 Share Posted February 9, 2007 <script src="javascript/listmodels.js"></script> <td width="253"><select name="make" id="make" onChange="UpdateModels(this.id)"> Doesnt seem to do anything. I know Im being stupid. Does the javascript include "has" to be in the html head ? Quote Link to comment Share on other sites More sharing options...
artacus Posted February 9, 2007 Share Posted February 9, 2007 no but I'd declare language="javascript" at least or some browsers might have trouble... and of course the the js file actually needs to be there. Quote Link to comment Share on other sites More sharing options...
fenway Posted February 9, 2007 Share Posted February 9, 2007 You should have your JS event handlers in lowercase for annoying validation purposes -- but if you're concerned about the function, simply dump it inline. Quote Link to comment Share on other sites More sharing options...
mainewoods Posted February 11, 2007 Share Posted February 11, 2007 js functions have to be included in the html head to be accessable later. What I've read is that using type="text/javascript" is better than the older language="javascript" Quote Link to comment Share on other sites More sharing options...
artacus Posted February 11, 2007 Share Posted February 11, 2007 js functions have to be included in the html head to be accessable later. Actually, they don't. But its a good practice. Mainly because anything called from a body onload needs to already be there. And the best way is to use both the type and language attributes. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.