0

I'm trying to use this in a website, it's for SEO needs ... It work well but this code :

window.open(url)

Don't produce the same result in all browser, in FF and IE, it create a new tab but in Chrome it open a new window and in Safari it didn't work at all.

Any idea to fixe it or another way to do this ?

asked Aug 29, 2011 at 13:34

3 Answers 3

4

This is a browser option. You can't really control that. Check the browser settings for tab operation.

answered Aug 29, 2011 at 13:35
Sign up to request clarification or add additional context in comments.

2 Comments

So if i want to make it work in all browser i need to do an if statement for each browser ?
No, that's not something that you can control via javascript. If your users select to have pop-ups open in a new tab, your code can't alter that.
0

Browser settings control how window.open works. It can pick to open in a tab or a new window and there is nothing in JavaScript that can override that.

answered Aug 29, 2011 at 13:37

1 Comment

not true, by setting the width in the window.open() at least firefox will open a new window instead of a tab.
0

If you set some options that don't 'fit' the main window, a new window will open instead of a new tab. Tried with the width setting and ff6 and ie7.

answered Aug 29, 2011 at 13:40

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.