Replace JS and refresh page?

  • Thread starter R. Rajesh Jeba Anbiah
  • Start date
R

R. Rajesh Jeba Anbiah

I'm just trying to do a Firefox extension for something I want to
achieve: The case is something like the following... I want to replace
a random script block with other _but_ before the page is get loaded.
I'm lost in this place: how to "refresh" the whole page after
replacing the script block, _but_ before anything get executed. Any
suggestions are welcome. TIA.

<!---script block 1--->
<script>
document.write("Hello-1");
</script>

<p>foooooooooooooooooo</p>

<!---script block 2--->
<script>
document.write("Hello-2");
</script>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top