0

Using a mailto: link or Javascript is it possible to get Chrome to launch the compose new email window in the tab where Gmail is already open, rather than opening another Gmail "instance"? mailto:, window.location.href or window.open(url) don't do this

alex
  • 1,250
  • 2
  • 12
  • 19

1 Answers1

0

I don't think - well I hope not - that is is possible to change the URL of a window not opened by yourself, or rather your code.

If you have that you can use window.open(url, name) where name is a unique string you set for for window

See an example for its use in this answer

In some browsers setting target to a unique name also works for mailto URLs, but it's not guaranteed, and it's very annoying for people who do not use webmail.

Community
  • 1
  • 1
tanghus
  • 55
  • 3
  • 10