View Full Version : Loading javascript from external file.

Jan 9th, 2007, 11:59 AM

I would like to know if the following code can be loaded from an extrernal file. So that I don't have too many code on my webpage.

<link rel="meta" href="http://deletespyware-adware.com/labels.rdf" type="application/rdf+xml" title="ICRA labels" />

<meta http-equiv="pics-Label" content='(pics-1.1 "http://www.icra.org/pics/vocabularyv03/" l gen true for "http://deletespyware-adware.com" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 0) gen true for "http://www.deletespyware-adware.com" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 0))' />

If so can anyone please explain how to do it.

Thanks a lot!

Jan 9th, 2007, 02:17 PM
<script type="text/javascript" src="yourfile.js"></script>

In that add document.write() statements


Jan 9th, 2007, 02:44 PM

Ok, the script worked for other sort of javascripts but not for the one I mentioned. When I click on the image on my site to load the ICRA page, the ICRA is suppose to read the code above. When I place it in an external file it does not read the code.

In other words I have to leave it as it is to work.