thendis
06-06-2005, 06:42 AM
Hellooo everyone!
I have a site which uses a user-controlled style sheet script. My working directory is here (links I am referring to are up top-right):
http://users.on.net/~longo/forum/working/default.htm
Now, to comply with W3C's guideline about keeping JavaScripts device-independant, I have used their suggestion by using "onClick" along with "onKeyDown" on those links for calling on the "changeToAccessible" function.
The problem is that on some browsers onkeypress seems to work the same as onblur, because if you tab off one of those links, the function is activated!!! what's up with that??
I would like to have it so that the function is only called upon when the link is activated by tabbing to it, then pressing the Enter key.
Can that be done easily?
Keep in mind I know very little about JavaScript. The script that is used on the site was created from a cut-and-paste tutorial!
:)
Thanx in advance!
I have a site which uses a user-controlled style sheet script. My working directory is here (links I am referring to are up top-right):
http://users.on.net/~longo/forum/working/default.htm
Now, to comply with W3C's guideline about keeping JavaScripts device-independant, I have used their suggestion by using "onClick" along with "onKeyDown" on those links for calling on the "changeToAccessible" function.
The problem is that on some browsers onkeypress seems to work the same as onblur, because if you tab off one of those links, the function is activated!!! what's up with that??
I would like to have it so that the function is only called upon when the link is activated by tabbing to it, then pressing the Enter key.
Can that be done easily?
Keep in mind I know very little about JavaScript. The script that is used on the site was created from a cut-and-paste tutorial!
:)
Thanx in advance!