开发者

How can I disable the setTimeout function in IE?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜