PDA

View Full Version : html js file questions



Spring0105
16 Dec 2009, 03:50 AM
<script language="JavaScript" src="http://localhost/test/test.js"> </ script>

<a href="http://www.google.cn" id="testlink1"> test </ a>

Why do I put
<script language="JavaScript" src="http://localhost/test/test.js"> </ script>
Written on the <a> connection before, there will be an object obj is not defined it?

I saw a lot of js code calls no problem on the head. Why did I write this not work?
Questions added: js, but I see a lot of sites are on the head (and in the back <html> emerge id), how they do it?