hi,
how can i find the request type for opening a page (whether it is for
the same tab, new tab or new window)

onStartURIOpen: function(aUri)
    {
      var nsURI = aUri.QueryInterface(Components.interfaces.nsIURI);
      var myPort = "";
      if (nsURI.port > 0)
         myPort = ":" + nsURI.port;
      var myUrl = nsURI.scheme +"://"+ nsURI.asciiHost + myPort +
nsURI.path
          var myRegExp = /abct\.com/;
          var val = myUrl.search(myRegExp);
          if(val != -1)
          {
                  gBrowser.loadURI('http://www.google.com');
                  return true;
          }
          else
                return false;
}

how can i find the request type inside the onStartURIOpen function???
i want to open new tab if the has clicked the link for new tab
otherwise in the same tab

Faraz

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to