Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

After I jump to another location on screen...

Status
Not open for further replies.

dbrooks74

Programmer
Nov 13, 2001
105
US
Using the following javascript function

<script language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot;>
<!--
function NewJumpMenu(targ,selObj){
eval(targ+&quot;.location='&quot;+selObj.options[selObj.selectedIndex].value+&quot;'&quot;)}
//-->
</script>


I am able to jump to wherever I want on my page using my little A tags. The problem is the focus is still on my combo box after I make the jump so if I try to use the mouse to scroll with it jumps me all over the place. Can someone suggest how this can be done so that the focus goes back to the page? Thanks very much.
 
Nevermind I just found what I needed to do. I added the following line after the jump was made....
top.focus();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top