Below is the javascript code to detect the popup blocker of a browser
<script language="javascript">
function popupblocker()
{
var sOption="toolbar=no,location=no,directories=no,menubar=no,";
sOption+="scrollbars=yes,width=500,height=500,left =200,top=50";
var i=window.open("Somepage.aspx","",sOption);
if(!i)
alert("Your browser Popup is on,Please turn off to open the child window.")
}
</script>
call this function on body load.
<body onload="popupblocker()">
</body>
No comments:
Post a Comment