Solved

How to send ctrl-F12 when an image icon is clicked on a webpage

Posted on 2013-10-25
5
187 Views
Last Modified: 2013-11-05
I have phone system software installed on a workstation that I can highlight a phone number, then press Ctrl-F12 on the keyboard to dial.  Is there a way to send Ctrl-F12 when an icon is clicked on a web page that can bypass the need for the user to press Ctrl-F12?
0
Comment
Question by:djpriceAtl
  • 3
  • 2
5 Comments
 
LVL 33

Expert Comment

by:Big Monty
ID: 39600237
here's a good tutorial explaining how to capture key preses, more specifically the F1-F12 keys. Look at the test example on the bottom of the page to see it in action.

http://www.quirksmode.org/js/keys.html
0
 

Author Comment

by:djpriceAtl
ID: 39600257
I can capture no problem, its that I want to create the ctrl-F12 somehow.  I want to have an icon on the webpage that when clicked it will do the same thing as if the user pressed Ctrl-F12.  So it's not really a capture that is needed, it's how to simulate or create the Ctrl-F12 by a click on an icon without actually having to use the keyboard (this is especially important for the touch screen workstations).
0
 
LVL 33

Accepted Solution

by:
Big Monty earned 500 total points
ID: 39600268
are you opposed to using jQuery?
0
 

Author Comment

by:djpriceAtl
ID: 39600292
I have never used jQuery so I am unfamilar with it.  I'm looking into finding examples of doing this now.  Do you know how to accomplish this task with jQuery in my .jsp?
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 39600332
Doing some more research, it looks like simulating a ctrl-f (1-12) event is not possible, as it could be a potential security risk (i wouldnt want a website to control whether or not i go into full screen, which would be ctrl-F11)

you may need to assign another key to do what you want. Either way, here's a thread that explains how to do what you want:

http://forum.jquery.com/topic/simulating-keypress-events
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to debug htl and js pages 8 39
forgetful about js objects 8 47
multiple selects 23 49
Word, Excel, Access icons 4 17
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question