简体   繁体   English

javascript函数会在onload页面自动调用,而不是onclick

[英]javascript function call automatically on page onload instead on onclick

I am facing a very strange problem. 我面临一个非常奇怪的问题。

I have javascript function in my aspx page that i call on the onclick event.but on one particular machine it always automatically called on body onload in infinite loop. 我在aspx页面上有javascript函数,我在onclick事件上调用它,但是在一台特定机器上,它总是在无限循环中自动在body onload上调用。

Though I already remove all the caching and delte the history and temp files. 尽管我已经删除了所有缓存并删除了历史记录和临时文件。

This seems very strange to me .It works fine on all the machine excpt one. 这对我来说似乎很奇怪。在所有机器上都可以正常工作。

The machine have windows 7 and IE verison 8.0.7600.16385 该机器具有Windows 7和IE版本8.0.7600.16385

Can some one please help me. 有人可以帮帮我吗。 Thanks in advance. 提前致谢。

This is likely something to do with how the JavaScript is defined, and IE8 doesn't like it. 这可能与JavaScript的定义方式有关,IE8不喜欢它。 Unfortunately, we can't really help you without seeing any code... 不幸的是,如果没有看到任何代码,我们将无法为您提供真正的帮助...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM