[英]How to open a popup window from a webpage on iphone
I'm trying to open a popup window (to display another webpage) from my webpage, when an hyperlink is clicked. 单击超链接时,我试图从网页中打开一个弹出窗口(以显示另一个网页)。 I'm not able to achieve this on iPhone.
我无法在iPhone上实现此功能。 I was wondering if there is any way to do this?
我想知道是否有任何方法可以做到这一点?
Mobile Safari and UIWebView
do not support pop up windows. Mobile Safari和
UIWebView
不支持弹出窗口。
Mobile Safar is capable of opening a new tab (or page), but not using the conventional methods of opening popup windows. Mobile Safar能够打开新的标签页(或页面),但不能使用打开弹出窗口的常规方法。
Use JavaScript to force opening a mobile version of your website in the iPhone. 使用JavaScript强制在iPhone中打开网站的移动版本。 On that page you can put a direct "click here" link to your popup page.
在该页面上,您可以将直接“单击此处”链接放置到弹出页面。
<a href="http://anotherwebsite.com" target="_blank">Link</a>
这将在iPhone中打开另一个野生动物园窗口。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.