问题
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:
- type about:config in the location bar of your webbrowser
- a message appears: click to accept
- search for blockautorefresh
- 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