简体   繁体   English

在HTML上按下按钮后,如何重新创建重新加载问题

[英]How can I recreate the reload issue when a button is pressed on HTML

I had an issue with my company's Web product, when a button is pressed the whole page is reloaded. 我的公司的Web产品出现问题,当按下按钮时,整个页面将重新加载。 This issue is similar to this one , I tried the solution and it works. 这个问题类似于这一个 ,我尝试了解决方案,它的工作原理。

Now I need to confirm the behavior on the versions of Internet Explorer that does not run on Windows XP (but some of our clients uses). 现在,我需要确认未在Windows XP上运行的Internet Explorer版本上的行为(但某些客户端使用)。 All of the PC in my office still runs Windows XP, and with strict policy there's no way I can use my home PC or laptop to access that product. 我办公室中的所有PC仍在运行Windows XP,并且按照严格的政策,我无法使用家用PC或笔记本电脑访问该产品。

I've tried to recreate the issue by creating a small HTML codes containing a button. 我试图通过创建一个包含按钮的小的HTML代码来重新创建该问题。 However the refreshing does not occur. 但是,刷新不会发生。 I missed some criteria, and I don't know what it is. 我错过了一些标准,我不知道它是什么。 So I'd like ask what is required to makes it reload the page when a button is pressed. 因此,我想问一下按下按钮时使其重新加载页面所需的条件。 The button on the page is constructed using <button> tag. 页面上的按钮是使用<button>标记构造的。

So I'd like ask what is required to makes it reload the page when a button is pressed 所以我想问一下按下按钮时重新加载页面需要什么

This should work in older browsers, too: 这也应该在较旧的浏览器中起作用:

<button onclick="location.reload(true);">reload</button>

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

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