Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Space to simulate a click on an image
Message
De
27/09/2001 15:25:54
 
 
À
27/09/2001 15:23:04
Information générale
Forum:
Internet
Catégorie:
HTML
Divers
Thread ID:
00561538
Message ID:
00561625
Vues:
24
>>>>I recently changed a page to use an image instead of a submit button. Before, I was able to tab, tab, tab and space over the submit button to submit the form. Now, I have an image and the space over the image scroll down the page. How can I define the image to submit the form when I hit space when the focus is over it?
>>>
>>>You could probably include a hidden submit type button and call it's Click() event from this image's onClick(). The following is untested VBScript code:
>>>
Sub myImg_onClick()
>>>  mySubmit.Click()
>>>End Sub
>>
>>Hitting space over the image doesn't fire the onClick() event.
>
>Would putting it inside of an anchor tag work? Although it works with an Enter, not a space, something like:
>
<A HREF="javascript:myImgClick()"> ..etc.
It is already within an anchor. The problem is to have the image to recognize the space key.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform