Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Space to simulate a click on an image
Message
From
27/09/2001 19:12:01
 
 
To
27/09/2001 19:06:29
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
00561538
Message ID:
00561753
Views:
27
>>>>Do you know the equivalent in Javascript?
>>>
>>>
function myAnchorSelect()
>>>{
>>>	if (window.event.keycode = 32)
>>>		alert("Space bar was pressed!");
>>>}
>>
>>The problem with that is that the space key press is in memory so even if it calls the form, the page is moving one page down.
>
>Would this work?
>
window.event.keyCode = 0;
>event.returnValue = false;
That works. Thanks
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
Previous
Reply
Map
View

Click here to load this message in the networking platform