怎么破解这个setTimeout()?? [英] how to hack this setTimeout() ??

查看:71
本文介绍了怎么破解这个setTimeout()??的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在运行时是否有办法在

html中更改一些Javascript变量?例如,我在IE中加载此页面。页面使用

setTimeout()以便在10分钟内调用表单的提交。我想知道

是否有办法改变时间。一般来说,有没有办法在运行时访问Javascript变量?

谢谢。

解决方案

Hoc Phan于2004年6月13日在comp.lang.javascript中写道

我想知道是否有办法改变一些变量在运行时的HTML中的Javascript?例如,我在IE中加载此页面。页面使用
setTimeout()以便在10分钟内调用表单的提交。我想知道是否有办法改变时间。一般来说,有没有办法在运行时访问Javascript的变量?




mytimeout = setTimeout(''do()'',20000)


稍后重置时间:


mytimeout = setTimeout(''do()'',400)

-

Evertjan。

荷兰。

(请将x''es更改为我的电子邮件地址中的点数)


你误解了我的观点。来自互联网的页面由IE打开

我需要更改超时而不编辑html代码。我正在寻找一种方法来干扰PC内存中的javascript变量。或者

无论如何都要让这个超时停止工作?谢谢。


2004年6月14日06:02:39 -0700, qu ******@netzero.net (Hoc Phan)写道:

你误解了我的观点。来自互联网的页面由IE打开
我需要更改超时而不编辑HTML代码。我正在寻找一种干扰PC内存中javascript变量的方法。或者无论如何都要让这个超时停止工作?谢谢。




转到urlbar并转到:


javascript :clearTimeout(姆明) ; void 0

其中Moomin是剧本中的一部分:


Moomin = setTimeout(...)


如果它没有说Moomin = ....但只是一个裸的setTimeout - 然后

你需要得到proxomitron或类似的行为改变

的行为。


吉姆。

-

comp.lang.javascript常见问题 - http://jibbering.com/faq/


I wonder if there is a way to change some variable of Javascript in an
html while running? For example, I load this page in IE. The page use
setTimeout() in order to call Submit of a form in 10 min. I wonder if
there is a way to change the time. Generally speaking, is there a way
to access into variables of Javascript while running?
Thank you.

解决方案

Hoc Phan wrote on 13 jun 2004 in comp.lang.javascript:

I wonder if there is a way to change some variable of Javascript in an
html while running? For example, I load this page in IE. The page use
setTimeout() in order to call Submit of a form in 10 min. I wonder if
there is a way to change the time. Generally speaking, is there a way
to access into variables of Javascript while running?



mytimeout = setTimeout(''do()'',20000)

later reset the time by:

mytimeout = setTimeout(''do()'',400)
--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


You misunderstand my point. The page from the internet is opened by IE
and I need to change the timeout without edit html code. I''m looking
for a way to interfere with javascript variables in PC memory. Or is
there anyway to make this timeout stop working? Thanks.


On 14 Jun 2004 06:02:39 -0700, qu******@netzero.net (Hoc Phan) wrote:

You misunderstand my point. The page from the internet is opened by IE
and I need to change the timeout without edit html code. I''m looking
for a way to interfere with javascript variables in PC memory. Or is
there anyway to make this timeout stop working? Thanks.



go to the urlbar and go:

javascript:clearTimeout(Moomin);void 0

where Moomin is the part of the script that says:

Moomin=setTimeout( ... )

if it doesn''t say Moomin = .... but just a bare setTimeout - then
you''ll need to get proxomitron or similar into the act to change the
behaviour.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/


这篇关于怎么破解这个setTimeout()??的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆