View Full Version : tab order with URL (in address bar)
ku916
07-16-2002, 08:45 PM
I was wonder if there is anyway to remove the tab order of the address bar (URL). I have a form in my page and I have set the order within the input fields, but when it gets to the last input field, instead of tabbing to the order #1 field, it tabs to the "address bar" where the URL is? is there anyway to disable it?
thanks
ku
ShriekForth
07-16-2002, 10:28 PM
I don't know what order that is, but you could onBlur() of the last field/button on the page set the focus() to the first item on the page.
<html>
<body>
<form name="temp">
<input type="text" name="first" tabindex="1">
<input type="text" name="second" tabindex="2">
<input type="text" name="third" tabindex="3">
<input type="submit" tabindex="4" onBlur="initialFocus()">
</form>
<script language="JavaScript" type="text/javascript">
function initialFocus(){
document.temp.first.focus();
}
initialFocus();
</script>
</body>
</html>
ShriekForth
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.