<div dir="ltr">Thank you <span style="font-size:12.8000001907349px">Joachim</span> and <span style="font-size:12.8000001907349px">Johan</span> for your answers.<div><br></div><div>I had tried adding &quot;callback:[]&quot; but that renders the whole page again.</div><div><br></div><div>Very interesting the discussion on SO about the semantic and functional nature of the anchor tag.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 18, 2015 at 6:13 AM, <a href="mailto:jtuchel@objektfabrik.de">jtuchel@objektfabrik.de</a> <span dir="ltr">&lt;<a href="mailto:jtuchel@objektfabrik.de" target="_blank">jtuchel@objektfabrik.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Wow, so I learned something again ;-)<br>
      <br>
      Am 18.02.15 um 09:33 schrieb Johan Brichau:<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      
      Hi Laura,
      <div><br>
      </div>
      <div>You need to include an href attribute with the
        anchor.</div>
      <div>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><br>
      </div>
      <div>We typically set the href to ‘javascript:{}’</div>
      <div><br>
      </div>
      <div>
        <div dir="ltr">
          <div>html anchor url:’javascript:{}’; onClick:
            aScript; onKeyDown:aScript</div>
          <div><br>
          </div>
          <div>Also see this discussion: <a href="http://stackoverflow.com/questions/10510191/valid-to-use-a-anchor-tag-without-href-attribute/10510353#10510353" target="_blank">http://stackoverflow.com/questions/10510191/valid-to-use-a-anchor-tag-without-href-attribute/10510353#10510353</a></div>
          <div><br>
          </div>
          <div>cheers,</div>
          <div>Johan</div>
        </div>
      </div>
      <div><br>
        <div>
          <blockquote type="cite">
            <div>On 18 Feb 2015, at 04:58, Laura Risani &lt;<a href="mailto:laura.risani@gmail.com" target="_blank">laura.risani@gmail.com</a>&gt;
              wrote:</div>
            <br>
            <div>
              <div dir="ltr">Hi all,
                <div><br>
                </div>
                <div>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><br>
                </div>
                <div>I can attach the script by sending </div>
                <div>html anchor onClick: aScript;
                  onKeyDown:aScript</div>
                <div>but then the printed anchor looks on the
                  web browser like regular text and don&#39;t get foucs.</div>
                <div><br>
                </div>
                <div>Best,</div>
                <div>Laura</div>
              </div>
              _______________________________________________<br>
              seaside mailing list<br>
              <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
seaside mailing list
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
    </blockquote>
    <br>
    <br>
    </div></div><span class=""><pre cols="72">-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          <a href="mailto:jtuchel@objektfabrik.de" target="_blank">mailto:jtuchel@objektfabrik.de</a>
Fliederweg 1                         <a href="http://www.objektfabrik.de" target="_blank">http://www.objektfabrik.de</a>
D-71640 Ludwigsburg                  <a href="http://joachimtuchel.wordpress.com" target="_blank">http://joachimtuchel.wordpress.com</a>
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1

</pre>
  </span></div>

<br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br></div>