You need to be logged in to post in the forums. If you do not have an account, please sign up first.
window.stop not working
Hi, I have this userscript:if (window==top.frames[1]) {
window.stop();
}
There's some detection around that, but that's the core. If I put an alert(location.href) in there, I get the correct result, and before the frame is completely loaded.
The intention is to stop the loading of a single heavy frame on a certain site. It's not working however, and no errors in the log. The frame completely loads.
Any hints?
Try
document.removeChild(document.documentElement);
For a collection of user scripts visit
http://my.opera.com/xErath/blog/
http://my.opera.com/xErath/blog/
No. Try it, inside your if block.
For a collection of user scripts visit
http://my.opera.com/xErath/blog/
http://my.opera.com/xErath/blog/
window.stop is the same as clicking the stop button on a top level document, and is a no-op elsewhere.
For a collection of user scripts visit
http://my.opera.com/xErath/blog/
http://my.opera.com/xErath/blog/