Skip to content

用javascript關閉視窗,避開詢問視窗 avoiding prompt window before window closing in IE9

2012/10/10

當用javascript window.close()關閉IE視窗的時候,有時候會出現""您正在檢視的網頁嘗試要關閉視窗,您是否要關閉此視窗",只要將程式調整如下就可以避免詢問視窗了

void(window.open(“,’_parent’,"));

window.close()

ps.IE7-9適用

From → JAVA

發表迴響

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s

%d 位部落客按了讚: