How to call esc(key board event) from javascript
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   uguru_v
Posted On:   Monday, November 15, 2010 08:37 AM

HI,

I want to call the escape functionlity using javascript.(with out using keyboard) in my code.

I tried using var event = document.createEvent("KeyboardEvent");
event.initKeyboardEvent("keypress", true, true, null, false, false, false, false, 27, 0);

But getting error object doeanot suport this property or method.

Is there any way to capture the event so that i can use event.keycode=27(which is for esc).

Thanks

SL Marketplace | Solar Solutions for a Mobile World.

Posted By:   Anonymous  
Posted On:   Tuesday, January 4, 2011 09:36 AM

SoL Marketplace provides solar solutions to a mobile world and is committed to improving our customer’s mobile lifestyle by allowing them to plug their mobile devices into the sun. We feel that we have some of the most unique and innovative solar accessories in the world, but our main priority are to you, the customer. Your thoughts and suggestions are very important, so please email us at: customerservice@solmarketplace.com.
For more please visit:
cheap iphone chargers
iphone charger

Re: How to call esc(key board event) from javascript

Posted By:   Anonymous  
Posted On:   Saturday, January 1, 2011 06:23 AM



i don'n know if there is any way to call the escape functionlity using js,
but this esc is supposed to do something in a function,
so in alternertive why not call that function instead?

Good luck!
About | Sitemap | Contact