Posted by Steven Kalcevich on 10/10/69 11:34
I am using oscommerce.com for a shopping cart program.
I tried many contribs on oscommerce's site and googled. I got focus to
the search box via this script below but when i go to a product it does
not remain on focus. or when i search for a product that does not exist
it does not go on focus. How can this be done? I am out of ideas thanks
my site is www.philcos.com
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Tom Khoury (t...@yahoo.com) -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function placeFocus() {
if (document.forms.length > 0) {
var field = document.forms[0];
for (i = 0; i < field.length; i++) {
if ((field.elements[i].type == "text") || (field.elements[i].type ==
"textarea") || (field.elements[i].type.toString().charAt(0) == "s")) {
document.forms[0].elements[i].focus();
break;
}
}
}
}
// End -->
</script>
email me off list if you can at skalcev...@NOSPAMgmail.com remove
nospam thanks
Navigation:
[Reply to this message]
|