handling location.href and window.open

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zampat
Forum Newbie
Posts: 1
Joined: Thu Dec 11, 2008 9:58 pm

handling location.href and window.open

Post by zampat »

In one of my forms I want to use both " location.href " and " window.open ".

Something like this :

location.href = "product_list.php";

window.open("product_details.php?id=123";

After using these lines, when the pages get opened, the user should view the page with window.open command.
In moziilla the focus remains on the window.open page, but in IE 6, the control goes back to location.href page after displaying the page with window.open statement.

Can anybody suggest me the solution to handle this situation both in mozilla and IE ?

Looking for the inputs. Thanks in advance.
Post Reply