Open iframe link in pop up on click

时间:2015-10-29 15:43:03

标签: html css html5 css3 iframe

I have a link which opens an iframe.

<a href"https://www.suse.com/common/inc/feedback_overlay.html?iframe=true">Test</a>

I want to open this link (iframe) in pop up if anyone clicks on a link.

Please help.

1 个答案:

答案 0 :(得分:0)

function OpenInNewTab(url) {
  var win = window.open(url, '_blank', 'height=500,width=500');
}
<a href"#" onClick="OpenInNewTab('https://www.suse.com/common/inc/feedback_overlay.html?iframe=true');">Test</a>