in my one website i want a pop up appear on page load and this pop up must not be block by pop up blocker
I have tried location.href
<html>
<head>
<script>
function aaa()
{
var href= "http://digiskills.pk";
popup = window.open('http://digiskills.pk', 'width=400 height=400');
if (popup === null || typeof popup === "undefined")
{
location.href = href;
}
else
{
popup.focus();
}
}
</script>
</head>
<body onload=aaa()>
</body>
</html>
the above code only by pass but not open the URL in pop up