user5858 user5858 - 1 year ago 93
Javascript Question

Open a url in new and same tab again and again

I'm unable to find the answer.

How can I use to open a link in a new tab?

Repeated calling should reload that same tab and not open a new one.

I've a button when clicked should load an url. Repeated click should reload in the same tab/window.

Answer Source

You need to pass a name as the second parameter to

As long as the tab with that name has not been closed, it will be reused.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download