The trick to open a webpage is to do not open the second page when the webpage is already opened!
This trick I met when I was working on a project.
When a user clicks the "add to shopping cart" button in my BtoC shopping cart, the shopping cart page is opened. However, when the shopping cart page is opened, the page is refreshed.
For the original effect, click the following
Click my 2
If I clicked 2, did I open two identical pages?
Now let's look at the new results.
New effect. Click below again
Click my 2
Click 2 to see if only one page is opened
The following is the implementationCodeIn fact, it is quite simple to use the attribute target
<A href = "/aierong/archive/2004/07/04/21150. aspx"Target = "_ blank"> Click my 2 </a>
<A href = "/aierong/archive/2004/07/04/21150. aspx"Target = "aierong"> Click my 2 </a>
This is not quite good. No matter how many times you click the link, the second same page will not be opened when the link page has already been opened.