cursor default to search box

webnp05

Registered
javascript for autofocus a cursor on a search box when a site is loaded is

document.getElementId('abc').focus();

This works in IE and firefox on a PC. However, this code does not work for Safari on a mac.

Does anyone know what javascript I can use to make Safari work?
 
Back
Top