开发者

Simulate user keypress to zoom screen

开发者 https://www.devze.com 2023-03-20 21:49 出处:网络
Is there any way of simulating a keypress of Ctrl+\'+\' (to zoom in the page) without any user interference?

Is there any way of simulating a keypress of Ctrl+'+' (to zoom in the page) without any user interference?

Is it possible to do it using Flash?

Thanks开发者_如何学Go


Not with pure javascript no - if JavaScript were allowed to access controls or functions outside the context of the document that would be a huge security risk. You'll need to simulate the effect with a CSS change of some sort.


You can check out CSS Zoom, which does pretty much what you described.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号