在新窗口中打开HTML元重定向 [英] Open HTML meta redirect in new window
本文介绍了在新窗口中打开HTML元重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要网页通过HTML元重定向并在新窗口中打开该页面。
<!DOCTYPE html PUBLIC - // W3C // DTD XHTML 1.0 Transitional // EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
< html xmlns =http://www.w3.org/1999/xhtml>
< head>
< title>照片库重定向< / title>
< meta http-equiv =Content-Typecontent =text / html; charset = iso-8859-1>
< meta http-equiv =刷新content =0; url = http://google.com>
< / head>
< body>
< / body>
< / html>
解决方案
你不能。你需要在计时器上使用JavaScript来打开一个弹出窗口(这很可能会被一些浏览器作为未被请求的弹出窗口阻止)。
你可能更适合使用不同的方法来解决你的问题。
I need web page to redirect via HTML meta and open that page in a new window. How can I do that?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Photo Gallery Redirect</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Refresh" content="0; url=http://google.com">
</head>
<body>
</body>
</html>
解决方案
You can't. You need to use javascript on a timer to open a popup (which most likely will be blocked by some browsers as an unrequested popup window)
You are probably better off taking a different approach to your problem.
这篇关于在新窗口中打开HTML元重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文