|
-
Apr 21st, 2004, 07:29 AM
#1
Thread Starter
Addicted Member
tabbing through controls
i've given al my controls an ascending tabindex.
i gave the tabindex-property of the controls i do not want to tab through the value "-1"
this works, but at a certain tab-press the cursor jumps to my adress-bar (internet explorer), can i disable this too?
greetz,
never argue with an idiot, he will bring you down to his level and will beat you through experience
-
Apr 21st, 2004, 08:22 AM
#2
I wonder how many charact
I don't think its possible, but if you find an answer, let me know...
It should happen that way, because the browser receives the event before the document, so malicious javascript couldn't keep you from reaching the address bar.
-
Apr 23rd, 2004, 09:06 AM
#3
I wonder how many charact
Just to follow up, its possible in IE4+ , but Netscape navigators and probably all other browsers won't allow you to caputre Tab keypresses.
VB Code:
'put this in the Page_PreRender
MyButton.Attributes.Add("onKeyDown","return checkForTab(this);")
If (myButton.Visible And Not Me.Page.IsClientScriptBlockRegistered("checkForTab")) Then
Me.Page.RegisterClientScriptBlock ("CESITabAutopostback", "<script>function checkForTab(obj) {if(event.keyCode == 9) return false;}</script>")
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|