Is there a way to execute the control + scroll function on click ? I want people to be able to zoom in on a website by clicking on a button and I think this is the easiest way because all browsers have this function. I only need the way to call this function from within jQuery.
Asked
Active
Viewed 1,065 times
0
-
2I don't think the browsers zoom-function is exposed to javascript. That would be a very Bad Thing... – Christian Wattengård Nov 22 '11 at 12:11
-
Possible duplicate: http://stackoverflow.com/questions/1647237/can-i-zoom-into-a-web-page-like-ie-or-firefox-do-using-programming – Rory McCrossan Nov 22 '11 at 12:12
1 Answers
0
No there is not.
But if you build your website with em
or %
and not px
you will have a easier job when you need to enlarge the website.
There might be better options, but it really depends on why you want to do this.
You can read when to use what here: Why em instead of px?

Community
- 1
- 1

Allan Kimmer Jensen
- 4,333
- 2
- 31
- 53