prevent a Javascript Modal Window to open itself in a new window
I used window.showModalDialog() to open a modal window in my ASP.Net web application. When I click a Button control to do something, the page is postback, and this made the modal window reopen a new window for the page. This is not what I excpected.
To prevent this unexpected action, you need to add the following html code inside
section of your ASP.NET page.If your page use a master page, you should definde a ContentPlaceHolder under
section in the Master page, and put the code above inside the placeholder of your aspx page.[@more@]來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13651903/viewspace-1035884/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- OAF OA FRAMWORK open new window
- Javascript window.openJavaScript
- JavaScript WindowJavaScript
- Window_Open詳解
- window.open 詳解
- window.open()總結
- JS中window.open和window.opener的使用薦JS
- JavaScript window物件JavaScript物件
- JavaScript window 物件JavaScript物件
- JavaScript檢測window.open()彈出視窗是否被攔截JavaScript
- window.open()開啟新視窗教程
- JavaScript 複習之 window物件JavaScript物件
- window.open()和target= blank存在安全漏洞
- window.open()函式引數用法詳解函式
- JavaScript window.onload簡介JavaScript
- JavaScript:window.onload問題JavaScript
- oracle中Window和Window GroupOracle
- 記一次小坑–關於window.open()
- 記一次小坑--關於window.open()
- safari 回撥中window.open無法執行
- Android Starting Window(Preview Window)AndroidView
- javascript中window.$是什麼意思JavaScript
- JavaScript 函式 window.matchMedia 的用途JavaScript函式
- javascript獲取window視窗的尺寸JavaScript
- JavaScript Window---瀏覽器物件模型JavaScript瀏覽器物件模型
- JavaScript學習4:BOM之window物件JavaScript物件
- 如何防止window.open彈窗被瀏覽器遮蔽瀏覽器
- Android-Window(一)——初識WindowAndroid
- MDN之Window(三)【window.postMessage】
- Window mode
- 如何防止window.open()開啟網頁快取問題網頁快取
- 防止window.open()函式彈出視窗被攔截函式
- 怎樣讓window.open('aa.jsp')共享資料JS
- js檢測window.open()彈出視窗是否被關閉JS
- window.top
- Squid for windowUI
- window的特性
- KendoUI系列:WindowUI