[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Is it possible to catch the onKeyDown event on a page that includes a Java applet?

Posted on 2009-05-07
4
Medium Priority
?
269 Views
Last Modified: 2013-11-23
I have a webpage containing a frame that has a java-applet inside of it.

On the webpage I check for onKeyDown. It works fine.

Except when the (i)frame contains a java-applet. Then it seems like the java-applet is steeling the event from the webpage, but unfortunately in a way, so that the user can still press [backspace] on the webpage and the browser goes 1 page back in the history.
The problem is that my OnKeyDown event doesnt catch the [backspace] (when the java-applet steels it). The whole idea was to prevent the user from being able to hit the [backspace]. And its working fine when there is no java-applet on the page.

What should I do in order to also catch the [backspace] when the page contains a frame with a java-applet?
0
Comment
Question by:loopstudio
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24324779
Redesign the application so it can handle going back.

For example on the previous page have

<a href="page2.html" onClick="location.replace(this.href); return false">Next</a>
0
 

Author Comment

by:loopstudio
ID: 24325975
I guess You mean CANT'T ? :)

But I dont have a link or a user clicking on something, so I cant use Your suggested solution.
Its event driven, so its the application itself that changes the content of the frame - and sometimes its a java-applet.

But isnt there a way to catch it?
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 1500 total points
ID: 24326061
Not that I know of
0
 

Author Closing Comment

by:loopstudio
ID: 31578962
close
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

656 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