Tabstriip Multipage Control Question

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>
 
G

Guest

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top