开发者

How can I disable the setTimeout function in IE?

开发者 https://www.devze.com 2023-03-03 19:18 出处:网络
When using Chrome I can disable setTimeout for windows or individual frames by overriding the setTimeout function like this window.frames[\'frame0\'].setTimeout = function() {}

When using Chrome I can disable setTimeout for windows or individual frames by overriding the setTimeout function like this window.frames['frame0'].setTimeout = function() {}

Is there a way to achieve a similar effect with IE?

I'd like to be able to do this from the JavaScript console as I don't have access to modify the JS that is setting the timers but I need to be able to debu开发者_JS百科g the page.

I found the following excellent discussion but it would appear that the technique mentioned must be called before other scripts are loaded. http://www.adequatelygood.com/2011/4/Replacing-setTimeout-Globally

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号