Differences between target = "_ new" and "_ blank !, _ New_blank
To solve this problem, let's look at the results of the three-Section code:
Code1:
<Html> <! -- Call the two codes whose target is new and blank respectively --> <frame name = "left" src = "t_new.html"> <frame name = "right" src = "t_blk.html"> </frameset>
Code2:
<Html> <! -- The target here is _ new --> <a href = "t_new.html" target = "_ new"> new anchor </a> </body>
Code3:
<Html> <! -- Here the target is _ blank --> <a href = "t_blk.html" target = "_ blank"> blank a new anchor </a> </body>
This is to compare the two, so we use a frameset to put the two sections of Code together for demonstration. Of course, we can also use two or three sections of Code separately for comparison.
Then, run code1 and you will find this result in the browser:
Let's first look at the results of _ new:
After clicking the link, we will find that the page is being refreshed. The result of _ blank is:
Click the link and you will find:
Multiple new windows are generated.
Result:
Target = "_ new" always in the same new window (refresh)
Target = "_ blank" always produces different new windows