Window vs Tab is a browser setting, not accessible by JavaScript as far 
as I know. You need to change the way your browser handles new windows.

In Firefox: Tools -> Options -> Tabs -> Open new windows in a new tab 
instead

-- 
Posted via http://www.ruby-forum.com/.