简体   繁体   中英

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. I was wondering if there is any way to do this?

Mobile Safari and UIWebView do not support pop up windows.

Mobile Safar is capable of opening a new tab (or page), but not using the conventional methods of opening popup windows.

Use JavaScript to force opening a mobile version of your website in the 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中打开另一个野生动物园窗口。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM