Home » Questions » Computers [ Ask a new question ]

Stop websites from forcing cursor to their search box? [duplicate]

Stop websites from forcing cursor to their search box? [duplicate]

It really annoys me when sites like msn.com try to force your cursor to their search box.

Asked by: Guest | Views: 318
Total answers/comments: 1
Guest [Entry]

"It's using javascript .focus(). Probably something along these lines;

<script type=""text/javascript"">
function formfocus() {
document.getElementById('element').focus();
}
window.onload = formfocus;
</script>

Disabling javascript prevented this. (Tested on Firefox using NoScript plugin)"