Pls does anyone know the difference between target = self, parent and top, they all open in the same window... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Pls does anyone know the difference between target = self, parent and top, they all open in the same window...

<p><a href="img/camo.jpg" target="_top">top</a></p>

19th Jan 2020, 10:07 PM
Temmy
Temmy - avatar
2 Answers
+ 11
Target attributes: target=blank_ opens the linked document in a new window or tab target=_self opens the linked document in the same window or tab as it was clicked (default) target=parent opens the linked document in the parent frame target=top opens the linked document in full body of the document target=framename opens the linked document in a ramed frame Hope this helps😊😊
28th Jan 2020, 5:56 AM
Sofija Vučković
Sofija Vučković - avatar