URGRENT: Need help with key press emulation


Is there a way to emulate the F11 key using jQuery?

Thanks in advance.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

HainKurtSr. System AnalystCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Here is a simple plug in that I use - easy to implement:
WebAppDeveloperAuthor Commented:
This is what I need to do.....

Onload of the page, I want the page to simulate a user pressing the F11 key. In other words, I need the onload function of the page to automatically press the F11 key for me (without the user doing anything).

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

What is it you are trying to accomplish? Messing with users browsers is a bad idea. Most users can't figure out the difference between their address bar and the their search bar, let alone how to return their screen back to normal size without closing it out completely. Could you do acheive the same thing using Shadow Box (http://shadowbox-js.com/) or full screen in a new window like this?

<script type="text/javascript">
function popup(url)
 params  = 'width='+screen.width;
 params += ', height='+screen.height;
 params += ', top=0, left=0'
 params += ', fullscreen=yes';

 newwin=window.open(url,'windowname4', params);
 if (window.focus) {newwin.focus()}
 return false;
// -->

<a href="javascript: void(0)" onclick="popup('http://www.google.com')">Fullscreen Window</a>
WebAppDeveloperAuthor Commented:

I apologize. It was the F9 key that I want to simulate, NOT the F11 key.  The requirement is that I have a third party program that has been configured to run only when the user presses the F9 key, and I need some javascript onload function to automatically (programmatically) simulate the user pressing the F9 key when the web page is loaded (onload of the page).

Thanks in advance.
WebAppDeveloperAuthor Commented:
Many tihanks to all of you.  This cannot be done since javascript does NOT allow simulating user pressing computer keys other than key detection.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.