P粉6210339282023-08-25 16:17:57
Settingtarget="child"
Will refresh the current tab (if already open)
ABcd Defg
P粉1327308392023-08-25 13:07:18
You can set the name of a specific window to open reused tabs. The problem is, as long as the href is the same, it won't reload. So you can't easily get the refresh
part.
For example, you can:
link link
In JS you can actually get the same result using window.open
. You can also use a url as the target
so you don't need to specify it manually:
link link
You can also generalize and add a click listener to the document so that certain links are opened this way. Something like this:
sssccc
If the page is in the same domain, you may also try to refresh the page at this time.