O
ofiras
Hi,
I have a JavaScript code that fetches code lines from another page
into a string, but I don't know how to run this code in the page I
need.
I've tried this but it didn't work:
var code; //my javascript code
document.getElementById('tojs1').innerHTML = 'function fill_mish1()
{'+ code +'}';
fill_mish1();
While in my page there is a line:
<script id='tojs1' type=text/javascript> </script>
Please help,
Ofir.
I have a JavaScript code that fetches code lines from another page
into a string, but I don't know how to run this code in the page I
need.
I've tried this but it didn't work:
var code; //my javascript code
document.getElementById('tojs1').innerHTML = 'function fill_mish1()
{'+ code +'}';
fill_mish1();
While in my page there is a line:
<script id='tojs1' type=text/javascript> </script>
Please help,
Ofir.