-
<script> tag help
Hi to all say i have the following
PHP Code:
<script language="JavaScript" src="js/page.js" type="text/javascript"></script>
how could i load the src dynamically through another function or whatever.I want to do that cuase is not nessecary to load page.js all the time and i do not want to cause is a 300k page so i want to set a var to load it any time i want any help appreciated
thnks
-
using the below code you can print the include line
Code:
document.write("<script language=\"javascript\" src=\"test.js\"><\/script>");
-
That is, if she is using VBScript ASPs.
-
No!
this is using javascript
Code:
<script language="javascript">document.write("<script language=\"javascript\" src=\"test.js\"><\/script>");</script>
try it CyberTHug, it works. I was supprised that it worked myself but it did.
-
Sorry, you're right. I wasn't even paying attention. You said "document.write", not "response.write".