Open two new tabs using Javascript
Posted
by Permana
on Stack Overflow
See other posts from Stack Overflow
or by Permana
Published on 2010-04-13T07:12:23Z
Indexed on
2010/04/13
7:12 UTC
Read the original article
Hit count: 200
I have this situation:
There are a login page with a login form (form action is $_SERVER['PHP_SELF']). When user login, it will check what application the user can access and open all the application that available for that user in new tab. If user can access application (for example) 'Docs' and 'Sites', it will open 2 tabs.
I Open new tab using window.open('app1.html','_newhtml');
, some people say that it only works in Firefox. It's OK, no big deal for me.
The problem is, It only open 1 tab, although I write it 2 times
window.open('app1.html','_newhtml'); window.open('app2.html','_newhtml');
How can I open 2 tabs? are there any hacks from server side or client side programming?
© Stack Overflow or respective owner