On Tue, 26 Apr 2005 13:16:12 +0100, Jeremy Keith <[EMAIL PROTECTED]> wrote:

2) If the link has a class of "popup":
        1) add an onlick behaviour
        2) cancel the default action
        3) make onkeypress do the same thing.

No, don't use onkeypress.

                lnks[i].onclick = function() {

                        window.open(this.href);
                        return false;

}

Wrong. You're not testing if window has been opened.

return !window.open(this.href);


-- regards, Kornel Lesiński

******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to