Topic awaiting preservation: No link selections in IE |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: |
posted 10-28-2002 01:12
I've always hated how IE draws little borders around links when they're clicked. There are times when they are helpful but other times I'd rather not see them. This little script will get rid of them. code: function noSelect(theTag) {
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 10-28-2002 01:34
However, I suspect that that script will make the page difficult to use for those who like to use their keyboards to navigate from time to time. |
Bipolar (III) Inmate From: |
posted 10-28-2002 02:19
Well you wouldn't want to use it on just any page you write, just on those pages where the little box would ruin the look and feel of the page. As a courtesy I suppose one could set UNSELECTABLE="off" in a similar function that would fire on an onkeydown event. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 10-28-2002 02:57
ZOD: Thanks for that - we have discussed this and various solutions were put forward - see here: |
Bipolar (III) Inmate From: |
posted 10-28-2002 03:42
Hmm. Actually links are still tabable when using this script so keyboard navigation isn't effected. |
Maniac (V) Inmate From: Brisbane, Australia |
posted 10-28-2002 04:37
You should also add [&& !window.opera] to that first if() statment |
Bipolar (III) Inmate From: |
posted 10-28-2002 04:54
Good point, thanks! document.all&&document.getElementById&&!window.opera it is. |