[thelist] Preventing default behaviour and event listener
Matt Warden
mwarden at gmail.com
Mon Jun 6 15:46:03 CDT 2005
On 6/6/05, J.J.SOLARI <jjsolari at pobox.com> wrote:
> There is a simple solution which is to have a 'onclick="return
> false;"' hardcoded into the link.
>
> But how can it be done without resolving to this solution?
Something like this:
window.onload = function() {
document.getElementById('myanchor').onclick= 'return false;';
};
--
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com
This email proudly and graciously contributes to entropy.
More information about the thelist
mailing list