Javascript to trigger key combination
I need javascript to trigger the combination of ctrl + minus. Is it possible. I need this because the design of the webpage I'm working on is looking much better at 83 % zoom which couldn't be achieved by CSS zoom property in mozzila firefox.
george61
Junior Poster in Training
59 posts since Jul 2010
Reputation Points: 10
Solved Threads: 6
You can achieve that by adding a listener to the keyboard (attachEvent() for IE and addEventListener() for FF and some others); however, as Luckychap suggested, I don't think it is a good idea to do so. This is the design problem, and it should not be designed the way it is now. Adding more stuff on top of it to solve the issue would give you more and more headache later on...
Taywin
Posting Virtuoso
1,727 posts since Apr 2010
Reputation Points: 229
Solved Threads: 239