html - Window.open not working as expected -


i'm trying link open popup , not new window, tried following , few variations yet reason window opens in new tab.

<script>window.open('add_game.php', 'height=200,width=150')</script> 

add 2nd , 3rd parameters follows , should work.

<script>window.open('add_game.php','new', 'toolbars=0,width=400,height=320,left=200,top=200,scrollbars=1,resizable=1')</script> 

Comments

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -