简体   繁体   English

如何在Internet Explorer弹出窗口中打开小书签

[英]How to open bookmarklet in Internet explorer popup window

I have developed the Bookmarklet for Internet Explorer. 我已经为Internet Explorer开发了Bookmarklet。 It works fine when user load it on main browser page. 当用户在主浏览器页面上加载它时,它可以正常工作。 The issue is, it does not work on the Pop-Up Window of the application. 问题是,它在应用程序的弹出窗口中不起作用。

Most of my users, open the link inside the main page in pop-up, but the bookmarklet is triggered from Favorite window. 我的大多数用户在弹出窗口中打开主页内的链接,但小书签是从“收藏夹”窗口触发的。

The bookmarklet link is not working in pop-up window. 小书签链接在弹出窗口中不起作用。

Is there a way to achieve this ? 有办法实现吗?

Try to use code below may help to solve your issue. 尝试使用下面的代码可能有助于解决您的问题。

 <!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" dir="ltr"> <head> <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" /> <title>WhatsApp</title> </head> <body> <script type="text/javascript"> javascript:(function(){open('https://Microsoft.com/','myWindow','toolbar=yes, menubar=yes, resizable=yes, width=650,height=900,top=0,left=1270');})() </script> </body> </html> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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