Open link in new window

Asked

Viewed 201 times

0

How do I open a given link, for example www.google.com in a new window without affecting the one I’m using? I will receive this link when running a method of a WS it comes in string format, so I have to open it to the user automatically without the action of it.

  • 1

    was sorry, already tried that http://stackoverflow.com/questions/10493901/how-to-open-a-page-in-new-tab-on-button-click-in-asp-net

1 answer

2


as soon as you receive the reply you can call this method by passing the url:

function openInNewTab(url){
  window.open(url,'_newtab');
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.