4 ms·
I hope they start to provide, when appropriate, non-JavaScript APIs for some of these things. Full screen is one that could be useful.
by MatthewPhillips 14y ago
I hope they start to provide, when appropriate, non-JavaScript APIs for some of these things. Full screen is one that could be useful.
- emddudley 14y agoNon-JavaScript? Like what?
- flebron 14y agoSay, <a href="foo" fullscreen="true">, I'd guess.
- MatthewPhillips 14y agoProbably something new would have to be invented as there is no mechanism to send messages to the browser in plain html. Something equivalent of a form element but without the action attribute. It would be nice to have something like (spitballing) <some-new-form> <input type="hidden" value="fullscreen" /> <input type="submit" value="Go fullscreen" /> </some-new-form>
- detst 14y ago> Probably something new would have to be invented as there is no mechanism to send messages to the browser in plain html. Web components. At least their usage is plain HTML and could do what you want internally with the JS API.
- cbrandolino_ 14y agoOh please no, we barely got rid of the target attribute /:
- abraham 14y agoMost browsers have keyboard shortcuts to go to full screen already.