What are the differnece between new window and same window link target attribute ?

rakesh2kumar

Compromised account
Joined
Nov 24, 2022
Messages
88
Reaction score
22
I just need to know about all these targets. how we use them ?

new window.png
 
This is what decides where the new page will open once the user clicks on the link. Out of these all only two are more important -

1) If you want the new page to open in the same browser window, then select (_self) or even leave it none.
2) If you want the new page to open in the new tab of the same browser then select (_blank) - I use this a lot.
 
This is what decides where the new page will open once the user clicks on the link. Out of these all only two are more important -

1) If you want the new page to open in the same browser window, then select (_self) or even leave it none.
2) If you want the new page to open in the new tab of the same browser then select (_blank) - I use this a lot.
I got this point , but still i want to know about parent window and topmost window....
 
Parent and top only really matter if you're using frames, which you really shouldn't be in this day and age. parent means it will open where the parent of the frame it's called from is, top will open at the very top of the window, so negating all nested frames. Unless you're doing some weird shit with frames (again, which you shouldn't be), you shouldn't need to use these properties, ever.
 
the best one to use is new window. You don't want your viewers to hop out of the page, especially if it's an external link
 
Back
Top