The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Key press adds class to element › Re: Key press adds class to element
@Stack,
You shouldn’t be sniffing "navigator.appName" just to target a specific property (entirely unrelated). Instead you should be checking for the existence of either property and then using whichever one is available.