April 26th, 2012, 07:29 AM
Button using JS with functionality of F11 keyboard key
I want to make a button which if pressed works as if F11 key on keyboard is pressed.
For button html would be like this (I think)
<button type="button" onclick="some function">FullScreen</button>
Now I don't know what function would go in that onclick as I don't have the JS. One more thing that would be nice if the text 'FULLSCREEN' changes to 'NORMAL WINDOW' when the button is pressed, so that the user could realize that they have to press the same button again to get out of fullscreen, it would be like toggle at every click text changes from 'FULLSCREEN' to 'NORMAL WINDOW' and then if pressed again changing to 'FULLSCREEN'.
April 26th, 2012, 09:26 AM
April 26th, 2012, 06:21 PM
I've tried to do something similar before. As far as I can tell, that is not possible.
April 27th, 2012, 01:55 AM
Well I think you are right
Originally Posted by Kravvitz