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 ?
3 Answers 3
This is a browser option. You can't really control that. Check the browser settings for tab operation.
2 Comments
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.
1 Comment
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.