How would I go about getting an element's :hover colour with Javascript?
I've tried the following,
var theLink = document.getElementsByTagName('a')[3];
document.defaultView.getComputedSt yle(theLink,
'hover').getPropertyValue('color');
but that didn't work because getComputedStyle specifically takes a
pseudo-element (not a pseudo-class) as its optional second argument.
Anyone have any ideas?
--
View this message in context:
http://www.nabble.com/Accessing-an-element%27s-%3Ahover-colour--tf3460537.html#a9655054
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/