4 ms·
I understand it's the default, but why? Why not add `target="_blank"` or some javascript to open in a new tab?
by esalazar 10y ago
I understand it's the default, but why? Why not add `target="_blank"` or some javascript to open in a new tab?
- detaro 10y agoBecause then you can't open it in the same tab. With a normal link the user can choose how to click, with a forced new tab they can't.
- esalazar 10y agoFair enough.
- sotojuan 10y agoAside from what detaro said, also this: https://medium.com/@jitbit/target-blank-the-most-underestimated-vulnerability-ever-96e328301f4c https://medium.com/@jitbit/target-blank-the-most-underestima...