2013年2月26日火曜日 21時13分36秒 UTC+9 saur m:
> Hello everyone, 
> 
>   I am new to the Mozilla development and have successfully build the nightly 
> browser. I just created a new toolbar but while opening link from toolbar it 
> opens link in new window instead of new tab; whereas same code works in 
> external html file. following is the toolbar code :
> 
> 
> 
> <toolbar id="xyz" align="center" toolbarname="xyz Toolbar" 
> onclick="window.open('http://www.google.com/','_newtab');">
> 
> 
> 
> Note: have set the setting also to open new links in new tab
> 
> also would like to know if its possible to open link in new tab from toolbar?
> 
> Looking for some help. Thanks in advance.

use openLinkIn 
http://mxr.mozilla.org/mozilla-central/source/browser/base/content/utilityOverlay.js#207
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to