Skip to content

Instantly share code, notes, and snippets.

@doochik
Created May 29, 2013 11:25
Show Gist options
  • Save doochik/5669610 to your computer and use it in GitHub Desktop.
Save doochik/5669610 to your computer and use it in GitHub Desktop.
Untitled
<form>
<input type="search" onfocus="onfocus1()"/>
<input type="submit"/>
</form>
function onload() {
window.setTimeout(function() {
window.scrollTo(0, 0);
}, 0);
}
function onfocus1() {
window.setTimeout(function() {
window.scrollTo(0, 0);
}, 0);
}
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"javascript"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment