<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Laura,<div class=""><br class=""></div><div class="">You need to include an href attribute with the anchor.</div><div class="">Seaside puts one when you add a callback and if you do not need that (like in your example), you can set the href yourself using the #url: message.</div><div class=""><br class=""></div><div class="">We typically set the href to ‘javascript:{}’</div><div class=""><br class=""></div><div class=""><div dir="ltr" class=""><div class="">html anchor url:’javascript:{}’; onClick: aScript; onKeyDown:aScript</div><div class=""><br class=""></div><div class="">Also see this discussion:&nbsp;<a href="http://stackoverflow.com/questions/10510191/valid-to-use-a-anchor-tag-without-href-attribute/10510353#10510353" class="">http://stackoverflow.com/questions/10510191/valid-to-use-a-anchor-tag-without-href-attribute/10510353#10510353</a></div><div class=""><br class=""></div><div class="">cheers,</div><div class="">Johan</div></div></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 18 Feb 2015, at 04:58, Laura Risani &lt;<a href="mailto:laura.risani@gmail.com" class="">laura.risani@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi all,<div class=""><br class=""></div><div class="">I want to attach a jQuery script to an anchor element while keeping the regular anchor appearance (i mean that web browsers render it like any other anchor, being focusable), and to be triggered under the same conditions a callback would (clicked / pressing a key while having focus).</div><div class=""><br class=""></div><div class="">I can attach the script by sending&nbsp;</div><div class="">html anchor onClick: aScript; onKeyDown:aScript</div><div class="">but then the printed anchor looks on the web browser like regular text and don't get foucs.</div><div class=""><br class=""></div><div class="">Best,</div><div class="">Laura</div></div>
_______________________________________________<br class="">seaside mailing list<br class=""><a href="mailto:seaside@lists.squeakfoundation.org" class="">seaside@lists.squeakfoundation.org</a><br class="">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br class=""></div></blockquote></div><br class=""></div></body></html>