Forum Moderators: open

Message Too Old, No Replies

Opening a second script inside a script

Is this possible?

         

aeae

2:19 pm on Sep 22, 2007 (gmt 0)

10+ Year Member



Is it possible for a script to reference information from a second script? For example:

<script type="text/javascript">
open "second_script.js";
alert(var_from_second_script);
</script>

Dabrowski

4:37 pm on Sep 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, but you could use a script in the <head> to write another line of script into the <body>. The browser would load the script when it came across the new line.