Re: Window.open() opens as a popup
A popup blocker will always jump in if you execute window.open() without direct user interaction. If you want to avoid a popup blocker you have to provide a link the user can click on and inside the click handler open the new window.
Beside that, you can't force the browser to open a new tab through javascript. Its a user specific setting inside the browser.
CSS3 seems to provide something in this direction but its not supported in any browser: http://www.w3schools.com/cssref/css3_pr_target-new.asp
-- J.
Am Sonntag, 22. April 2012 20:27:51 UTC+2 schrieb Deepak Singh:
Hi,I am using Window.open('Url', "_blank", "");It always opens the new window as popup. I want this to be opened as a new tab, browser window. It should not react with popup blocker anymore.How can i achieve this one ?Thanks
Deepak Singh
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/MX73-2UWBvsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home