Tabstriip Multipage Control Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Any help on how to set the focus in the Tabstrip, Multipage (Microsoft IE Web
control )

The focus works good if the tab is selected.

When a different tab is selected, then it says the element cannot be focused
since the controls may not be visible.

Any workaround for this?

<script language="javascript">

function UEP_focus(id)
{
var o = document.getElementById(id);
if (o != null)
o.focus();
o.select();
}

</script>
 
Looks like it has a selectedIndex property, thanks.
<script language="javascript">
function UEP_focus(pageid,fieldid)
{
var f = document.getElementById('tsVert');
f.selectedIndex = pageid;
var o = document.getElementById(fieldid);
if (o != null)
o.focus();
o.select();
}
</script>
 
Back
Top