Category: javascript

Email Spambot Buster

Web Axe host Dennis Lembree has published an article describing an accessible method of coding email addresses on web pages which blocks spammers, the Email Spambot Buster. Sample code is provided. The technique implements progressive enhancement and unobtrusive JavaScript. JavaScript-enabled browsers display a “normal” email link and other browsers display the email using “email munging”.

Interview with Author Christian Heilmann

Chris Heilmann is the author of Beginning JavaScript with DOM Scripting and Ajax: From Novice to Professional. He’s also a co-author of Web Accessibility: Web Standards and Regulatory Compliance. He’s writes an excellent blog Wait Till I Come and has contributed many articles in web development including several articles to A List Apart and SitePoint. He is also a member of the Web Standards Project.

Download Web Axe Episode 29 (Interview with Christian Heilmann)

Chris Heilmann

Unobtrusive Javacript (and the DOM)

Ah, Javascript. The wonderful scripting language that creates lots of cool stuff on your web page. But how do you make it Accessible?

Download Web Axe Episode 11

Links:

This is an example of a javascript “listener” which opens a link in a new window (using a function) if the rel in the a tag is “external”.

window.onload=function(){
setOnClick();
}

function setOnClick() {
if(!document.getElementsByTagName) {
return;
}
var anchors = document.getElementsByTagName("a");
for (var i=anchors.length; i !=0; i--) {
var a=anchors[i-1];
if (a.rel.indexOf("external") != -1) {
a.onclick = function(){newWin(this.href,'popup1',700,400);
return false;}
}
}