Hello, The page has links of the form:
<a class="ifr" id="popup" href="/article/234">Текст</a> <a class="ifr" id="popup" href="/article/235">Текст</a> ... How to make, that when clicking on links with given id to href, one more parameter was added at the end? For example: / article / 235 / popup But the look of the link itself for the user and search engines should not change ...
$ (document) .ready (function () {
$ ("a # popup"). each (function () {
$ (this) .attr ("href", $ (this) .attr ('href') + '/ popup');
});
});
Such a script does not fit - it changes all the links initially ... and I only need to click. So that the user could not see and copy such links.
Ideally, make links of the form
<a class="ifr" hrefattrs="/cmd=PopLayer" id="popup" href="/article/235">Текст</a> And when you click on the link to href if set to hrefattrs hrefattrs joined.
Tell me how to implement? Thank you in advance.