3

I'm trying to get a link to open as a popup and not as a new window, I tried the following and a few variations yet for some reason the window only opens in a new tab.

<script>window.open('add_game.php', 'height=200,width=150')</script>
asked Apr 19, 2016 at 23:56

1 Answer 1

1

Add the 2nd and 3rd parameters as follows and it should work.

<script>window.open('add_game.php','new', 'toolbars=0,width=400,height=320,left=200,top=200,scrollbars=1,resizable=1')</script>
answered Apr 19, 2016 at 23:58
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.