简体   繁体   中英

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. 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). 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.

I've tried to recreate the issue by creating a small HTML codes containing a button. 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.

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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