问题
I used meta refresh but it doesn't work 'Safari'. What can i do?
<meta http-equiv="refresh" content="5;URL='http://example.com/'">
回答1:
It is not supported by Safari.. And your not the only one who asked that.. There is 2 possibility:
- Make a button to let user refresh the page
- Use Ajax to be able to update parts of your website
Hope this helps!
回答2:
According to what I found on Google; this may have been a bug in Safari in the past but many people claim it's been resolved.
There's also someone mentioning that it could be that this specific header is disabled in Safari.
If none of the above works, you can always use javascript to do the redirection:
function redirect()
{
setTimeout(function(){window.location='otherpage.html'},5000);//5 secs
}
window.onload=redirect;
来源:https://stackoverflow.com/questions/12181399/meta-refresh-for-safari