How to trigger f11 event of keyboard using javascript or jquery?

后端 未结 5 1241
既然无缘
既然无缘 2020-12-16 05:18

I want to trigger f11 event of keyboard using javascript or jquery, can anyone tell me how to do this ?

5条回答
  •  攒了一身酷
    2020-12-16 05:19

    You can't make people's computers type things through javascript. It violates the sandboxing environment of browsers. I assume that you are trying to make a window go full screen though. This SO question covers that.

    How to make the window full screen with Javascript (stretching all over the screen)

提交回复
热议问题