Axeia Posted February 15, 2010 Share Posted February 15, 2010 I'm starting to suspect that I'm overlooking something basic as even after dumbing down my code to the example below it still throws a nice "SetTimeOut is not defined" error in the Firefox Error console. So anyone got any suggestions on how to get this to work instead of throwing errors? <script type="text/javascript"> document.getElementById('tags').addEventListener('focus', function(e){ setTimeOut( "document.getElementById('navbar').style.display = 'none';", 100 ); }, false); </script> Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted February 15, 2010 Share Posted February 15, 2010 Try setTimeout Quote Link to comment Share on other sites More sharing options...
Axeia Posted February 16, 2010 Author Share Posted February 16, 2010 I'm almost ashamed to admit it, but that worked, gah! Which is rather odd because I copy/pasted it from a greasemonkey script I wrote myself where it did work. Oh well, you have my thanks! a second pair of eyes always comes in handy.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.