I have an invoice page that is automatically generated by some server-side vbscript. The script generates and onLoad attribute for the body tag, but I don't want this function to fire if the page is loaded from an Admin page.
So, my question is, how do I either clear the window.onload queue or remove the statements from the function it fires?
1. Page begins loading
2. Body Tag sets a pagePrint() function to the onLoad queue
3. script checks to see if page came from the Admin center
3a. If it was, remove the pagePrint() function from the queue and perform other functions
3.b If not, leave the queue alone and do nothing.
4. Page finishes loading, and fires the window.onload queue
I can program everything else, I just need to know how to stop something from firing. I have no control over the Body tag, since this is eCommerce software.