bobpinz
06-28-2003, 04:55 PM
Hello,
Would someone kindly tell me the correct format to call an external javascript .js file from inside an internal javascript function. I am trying:
<script>
function pu() {
src="/xxx.js";
}
</script>
I want to run the file xxx.js but I don't want the code to be in my webpage as a function. This code has no errors but doesn't do anything. This does work though:
<script src="/xxx.js"></script>
in place of the function, but I can't use it because of restrictions placed by Google.
Thanks a lot,
bob:confused:
Would someone kindly tell me the correct format to call an external javascript .js file from inside an internal javascript function. I am trying:
<script>
function pu() {
src="/xxx.js";
}
</script>
I want to run the file xxx.js but I don't want the code to be in my webpage as a function. This code has no errors but doesn't do anything. This does work though:
<script src="/xxx.js"></script>
in place of the function, but I can't use it because of restrictions placed by Google.
Thanks a lot,
bob:confused: