[英]How to popup window of a certain size based on a certain position in Javascript?
Assuming I have a page with an iframe positioned somewhere on a page that is 400px by 400px. 假设我有一个页面,该页面的iframe位于400px x 400px的页面上。 Is it possible to click a button that causes the contents of the iframe to pop out in a new window such that it remains the same size of the iframe and is positioned right over the area where the iframe is on its original page?
是否可以单击一个按钮,以使iframe的内容在新窗口中弹出,使其保持与iframe相同的大小,并位于iframe原始页面上的区域的正上方?
You may try like this:- 您可以这样尝试:-
<a href="/abc.php"
onclick="window.open(this.href,'targetWindow','toolbar=no,
location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,
width='400px',height='400px')" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.