I am using window.open(0 method to open a new popup window. It's showing javascript error "Access Denied". My code is below:
Script Code:
function wopen(url, name, w, h)
{
var win = window.open(url,
name,
'width=' + w + ', height=' + h + ', ' +
'location=no, menubar=no, ' +
'status=no, toolbar=no, scrollbars=no, resizable=no');
win.resizeTo(w, h);
win.focus();
}
HTML Code:
<a href="<%=link("*","PopupDisplay")%>" target="popup"
onClick="wopen('<%=link("*","PopupDisplay")%>', 'popup', 450,200); return false;"
id ="CommerceQuery_fourpartlink"4 Part Key#</a>
// "PopupDisplay" will forward to the corresponding link
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.