gautamshaw Posted October 1, 2009 Share Posted October 1, 2009 How to use the shortcut keys in jvascript?Can someone illustrate it to me with an example? Link to comment Share on other sites More sharing options...
gautamshaw Posted October 1, 2009 Author Share Posted October 1, 2009 Such as suppose on clicking the Ctrl+alt key,i want to display a prompt dialog box........How to do this? Link to comment Share on other sites More sharing options...
gautamshaw Posted October 1, 2009 Author Share Posted October 1, 2009 I tried this:<script language="javascript">shortcut.add("Ctrl+S", func())function func(){alert("Hiiiiii")}</ script>But when i press ctrl+s only a beep sound is coming but there is no alert dialog box.........Need some help Link to comment Share on other sites More sharing options...
justsomeguy Posted October 1, 2009 Share Posted October 1, 2009 Have you checked here:http://www.openjs.com/scripts/events/keyboard_shortcuts/ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.