Meta Refresh not working in Firefox

风流意气都作罢 提交于 2019-12-23 04:54:27

问题


I'm using meta refresh with <meta HTTP-EQUIV="REFRESH" CONTENT="0; URL=javascript:window.open('home.asp?uuid=123','_top');"> and it works in every other browser except Firefox. Any ideas?


回答1:


In Firefox autorefresh has been disabled by default.

To enable autorefresh in your browser:

  1. type about:config in the location bar of your webbrowser
  2. a message appears: click to accept
  3. search for blockautorefresh
  4. change accessibility.blockautorefresh from false to true

Good luck!




回答2:


accessibility.blockautorefresh TRUE

does not stop HTML or Java-based refreshes - it's quite common for webmasters to pimp their page hits by chain refreshing, typically at 1 second intervals. I learned about accessibility.blockautorefresh, celebrated, changed the value and was sorely disappointed that it didn't work for HTML / Java based refreshes.

I absolutely despise web developers who use my equipment to falsify page hits for monetized reasons. Every other major browser can manage it. I use Firefox specifically because of the level of control it gives and love Firefox muchly, but I am forced to go back to Internet Explorer until Firefox catches up.




回答3:


Just put (id) that you require within the Action element in a form like this:

I tried in PHP code..

$q = $_GET['id'];
...
echo"<meta http-equiv='refresh' content='0;URL=home.php?q=".$q."' />";

<form role="form" action="home.php?q=<?php echo $q; ?>" method="POST">


来源:https://stackoverflow.com/questions/11908063/meta-refresh-not-working-in-firefox

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!