📜 ⬆️ ⬇️

Cure JavaScript Addiction

The problem (although not for everyone): in the current Habr implementation, the link ( answer ) in the comments cannot be opened in a new window. This effect is achieved as follows:

<a href="javascript:saw(703108);"></a>

But there is a more universal tool, peeped in livejournal:

<a onclick="javascript:return saw(703108);" href="***.html?replyto=703108#703108"></a>

[+] The convenience of commenting (DHTML) remains, with ...
[+] links do not lose their usual properties (depending on the browser, by the way)
[+] eliminates dependency on javascript
[-] need to change something :)
')
UPD , March 11: FWIMC, I'm only interested in the mouse preservation of the usual properties of the links; I am not interested in the implementation of the implementation.

Source: https://habr.com/ru/post/21474/


All Articles