Hi,
I want to use a script at the top of an html page to change a line in script code at the bottom of the page. I want to do this without changing any of the bottom script code such as adding an id= or onclick=. I have been trying to do this by using onload in the body tag to call my script changing function but can't figure out how to reference the bottom script code through the DOM. If needed, I could put an id= in a tag before the bottom script code such as:
<td id="script_code_to_change>
<script>
line_to_change
</script>
</td>
If someone could give me the best way to reference the bottom script code and change the line_to_change, it would be greatly appreciated.
Thanks!
Ben
I want to use a script at the top of an html page to change a line in script code at the bottom of the page. I want to do this without changing any of the bottom script code such as adding an id= or onclick=. I have been trying to do this by using onload in the body tag to call my script changing function but can't figure out how to reference the bottom script code through the DOM. If needed, I could put an id= in a tag before the bottom script code such as:
<td id="script_code_to_change>
<script>
line_to_change
</script>
</td>
If someone could give me the best way to reference the bottom script code and change the line_to_change, it would be greatly appreciated.
Thanks!
Ben