Last active
September 2, 2015 09:14
-
-
Save thotbox/e49597333b15437921b6 to your computer and use it in GitHub Desktop.
JavaScript: Facebook Iframe Scroll Hack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Scroll Top Iframe Hack | |
$(document).ready(function() { | |
if($('#focus-field').length ) { | |
setTimeout(function () { | |
$('#focus-field').focus(); | |
$('#focus-field').blur(); | |
}, 300); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment