>I was wondering if there is any way with onload that I can highlight (blue
color) the select box field while simultaneously placing the mouse cursor or
focus on a text box immediately below it? Thanks in advance.
While possible, you will need to add more functionality to remove
the highlight from the first option if a person selects another option.
This is just a simple example to do what you asked for.
<.script type="text/javascript">
function initHighlight( objForm) {
objForm.elements[ "exaSelect"].options[ 0].style.color="white";
objForm.elements[ "exaSelect"].options[
0].style.backgroundColor="highlight";
objForm.elements[ "exaInput"].focus();
}
<./script>
<.body onload="initHighlight( document.forms[ 'frmExample']);">
<.form name="frmExample" onsubmit="return false;">
<.select name="exaSelect">
<.option value="1">1
<.option value="2">2
<.option value="3">3
<./select>
<.input type="text" name="exaInput" value="This is a test">
<./form>
Peace, Vm
Yaz
Providing complicated solutions to simple problems since 1997.