Disable Focus on Window Load

By ChuckieMac Last update Dec 26, 2006 — Installed 382 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 3
Script Summary:
Counteract onload=element.focus()

This script has no discussions.

start the discussion

Review Summary
5 stars
0 reviews (0)
4 stars
1 reviews (1)
3 stars
0 reviews (0)
2 stars
0 reviews (0)
1 star
0 reviews (0)

this script has 1 review

Many sites, such as weather.yahoo.com, have a body onload event that focuses the cursor in the search field. This gets aggravating when I'm using the keyboard's backspace key to navigate through the browser's history. This script takes the focus off any input element on the page that might have focus and recovers the functionality of the backspace key (or mouse back/forth buttons).