Opener in javascript ?

They have: 2 posts

Joined: Nov 2001

Hi,every one.
I need help :
i want to open a pop up using a script in a js file and to change my current page in another .
i know that i must use opener but i don't know where to pu it .
Here my code:
pop_up_test
the js :
function open_popup(url,url_change,nom_fenetre,width,height)
{
var fenetre;
var option = "toolbar=no,location=0,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height;
var szFinalUrl
szFinalUrl = url;
opener.location.href.url_change;
fenetre=window.open(szFinalUrl,nom_fenetre,option);
fenetre.focus();
}

detox's picture

They have: 571 posts

Joined: Feb 2001

how are you wanting to trigger the event to load it?

They have: 2 posts

Joined: Nov 2001

In fact i was thinking about a difficult thing :
i wanted just to open a pop up and to change the current page here my code and it works:

i use window.location

pop_up_test

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.