0

i made a js popup, and it need to give a name after it pops up, here is my code for it, the second argument i assigned the blank, so i need set second argument after this popup launched

pp=window.open('demo/player.php','','width=200,height=100');

i need to change the popup name to "firstpp" after it opened something like "firstpp" for second argument as below , can i give pp.name ... or something like

pp=window.open('demo/player.php','firstpp ','width=200,height=100');

thank you

1 Answer 1

4

This is currently not tested, but you should be able to use the following so long as the popup is in the same domain as the main window:

var pp = window.open('demo/player.php','','width=200,height=100');

// some time later:
pp.name = 'firstpp';
Sign up to request clarification or add additional context in comments.

1 Comment

oops this is working ;) thank you.... i attack to google chrome popup blocker ;)

Your Answer

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.