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> Link to comment https://forums.phpfreaks.com/topic/192168-settimeout-is-not-defined/ Share on other sites More sharing options...
roopurt18 Posted February 15, 2010 Share Posted February 15, 2010 Try setTimeout Link to comment https://forums.phpfreaks.com/topic/192168-settimeout-is-not-defined/#findComment-1012787 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.. Link to comment https://forums.phpfreaks.com/topic/192168-settimeout-is-not-defined/#findComment-1013197 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.