Y
Yang
I have a javascript as follows:
<script type = "text/javascript" src = "http://something.com?
id=abcde&name=something"></script>
now, I want to repalce the id=abcde with some parameters from another
script, say
<script type="text/javascript">
var myid = abcdef;
</script>
I tried scr = "http://something.com/id="+myid+"&name=something">, but
it doesn't work.
Isn't it the same as Java?
<script type = "text/javascript" src = "http://something.com?
id=abcde&name=something"></script>
now, I want to repalce the id=abcde with some parameters from another
script, say
<script type="text/javascript">
var myid = abcdef;
</script>
I tried scr = "http://something.com/id="+myid+"&name=something">, but
it doesn't work.
Isn't it the same as Java?