user5858 user5858 - 5 months ago 8
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.


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.