tags:

views:

36

answers:

1

Hello,

I want to make the same functionality of "Ctrl +" & "ctrl -" shortcuts.

how can i do this using javascript?

if it is not valid by javascript is there another options?

Thanks in Advance

+1  A: 

I don't think you can change the zoom level of the browsers via javascript (at least not reliably on all browsers)

but you can emulate the zoom behavior by changing font sizes using javascript and css

Nikolaus Gradwohl
Is there a way to fire the action of "Ctrl +" ?
Neveen
you can reakt to key events by adding a handler function to the onKeypress eventhandler, but if your zoom handler gets priority over the system zoom function will be browser and maybe even plattform dependent
Nikolaus Gradwohl