Popup blocker window
-
I want to detect if the client browser is using popupblocker or not.. or is there any solution to popup a window regardless of that popblocker as Hotmail and yahoo shows popupwindow on deleteing of emails thanx in advance**
R A M
**
-
I want to detect if the client browser is using popupblocker or not.. or is there any solution to popup a window regardless of that popblocker as Hotmail and yahoo shows popupwindow on deleteing of emails thanx in advance**
R A M
**
Hi, What is the method you r using to show popup? Sushant Duggal.
-
I want to detect if the client browser is using popupblocker or not.. or is there any solution to popup a window regardless of that popblocker as Hotmail and yahoo shows popupwindow on deleteing of emails thanx in advance**
R A M
**
function openMyWindow(){ var PagetoPopup; PagetoPopup= '<%=Session["app_path"]%>' + "MyWindowName.aspx"; var newWin = null; newWin = window.open(PagetoPopup,"MyPopupWindow","toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars=no, resizable=yes,titlebar=0"); if ( (newWin == null) || (typeof(newWin) =="undefined") || (typeof(newWin .location.hash) != "string") ) { alert('Please ensure that pop-ups are enabled!'); } else { if (self.name != 'MyPopupWindow') { top.close(); // Use this if you want to close the main/parent window ; otherwise comment out this code } } I hope this is what you wanted.The code notifies the user if the popup blocker is activated, so that the user can de-activate it and try to open the window again. Vuks
-
function openMyWindow(){ var PagetoPopup; PagetoPopup= '<%=Session["app_path"]%>' + "MyWindowName.aspx"; var newWin = null; newWin = window.open(PagetoPopup,"MyPopupWindow","toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars=no, resizable=yes,titlebar=0"); if ( (newWin == null) || (typeof(newWin) =="undefined") || (typeof(newWin .location.hash) != "string") ) { alert('Please ensure that pop-ups are enabled!'); } else { if (self.name != 'MyPopupWindow') { top.close(); // Use this if you want to close the main/parent window ; otherwise comment out this code } } I hope this is what you wanted.The code notifies the user if the popup blocker is activated, so that the user can de-activate it and try to open the window again. Vuks
thanx alot Vuks .. i will get back to you if i face some problem in this script .. thanks again**
R A M
**