Open link in new window

0

How do I open a particular link, for example www.google.com in a new window without affecting what I'm using? I'm going to get this link when I run a method from a WS it comes in string format, so I have to open it to the user automatically without the action of it.

    
asked by anonymous 07.03.2017 / 21:30

1 answer

2

As soon as you get the answer you can call this method by passing the url:

function openInNewTab(url){
  window.open(url,'_newtab');
}
    
07.03.2017 / 21:34