Click to See Complete Forum and Search --> : HOW DO I: replace the ctrl+f funcion of IE
shunt
Oct 2nd, 2002, 03:39 AM
I have made my own modal dialog box which brings up some data
for the user to search through. I have given a button which would display the modal dialog, but I would like to give it a hotkey. I particularly want to use CTRL+F, but this always brings up the IE find box.
Any suggestions?
Doe maar
Oct 2nd, 2002, 06:36 AM
<HTML>
<HEAD>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function document_onkeydown() {
if ( (event.keyCode == 70 || event.keyCode == 102) && event.ctrlKey == true )
{
alert('ctr-f')
}
}
//-->
</SCRIPT>
<SCRIPT LANGUAGE=javascript FOR=document EVENT=onkeydown>
<!--
document_onkeydown()
//-->
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>
msimmons
Oct 11th, 2002, 11:54 AM
Does any have, or know where to find a list of the keys?
thx
Michael
msimmons
Oct 11th, 2002, 11:57 AM
Its giving me my function and the IE find box... any ideas?
msimmons
Oct 16th, 2002, 04:12 PM
(see both prev posts) :)
Rick Bull
Oct 17th, 2002, 04:57 AM
Can you not just use accesskey instead?
<input accesskey="F" value="Alt + F" type="button" />
I think that means windows uses Alt + F and Mac uses Cmd + F, or is that not what you want?
msimmons
Oct 17th, 2002, 08:41 AM
Actualy I was hoping for ctrl+f cos this app I am working on is an online version of our user database that is origonaly done localy in FileMaker. People have grown so used to the ctrl+f to find records that I was hoping to be able to use it :)
Michael
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.