imo this can't be 'fixed' because it's using very general js functions to accomplish the task. here's an alternate version that does pretty much the same thing:
basically it just says that if the window focus is removed, wait 5 seconds and then redirect to another domain, for which the title, favicon, and content have already been set to what they need to be.Code:<script> window.onblur = function(){ TIMER = setTimeout(changeItUp, 5000); } window.onfocus = function(){ if(TIMER) clearTimeout(TIMER); } function changeItUp() { location.href = "http://www.yahoo.com" } </script>
I just wonder if it's possible to translate this code to a valid FBJS?
'Cause this would be pretty epic in a FBML tab...