Window.open with a popup blocker

I am trying to open a specific page from my default page. All code on the default page:

<script type="text/javascript">
        window.open("StartPage.aspx", "", "fullscreen=yes");  
</script>

The problem is that the browser popup blocker blocks this, and I need to allow the browser to open it. I want to avoid this, and that anyone who uses my web application should not allow the pop-up blocker to open the page. I want to pass a popup blocker and open the page without permission.

Is there any way to do this? Thanks

+5
source share
5 answers

. , , . , , :

<script type="text/javascript">
    var myPopup = window.open("StartPage.aspx", "", "fullscreen=yes");  
    if(!myPopup)
        alert('a popup was blocked. please make an exception for this site in your popup blocker and try again');
</script>
+13

, . . - window.open, javascript, .

+3

. , .

+1
source

You can open a popup using only the onclick event. You can try to submit the form with the help target="_blank"and the actions installed on your url, but forefox blocked this, google chrome not.

+1
source

I don't think this is impossible, every day I see that streaming pages pop up pop-ups all the time, and mine is blocked, so this should be a way around it.

0
source