<some-new-form> <input type="hidden" value="fullscreen" /> <input type="submit" value="Go fullscreen" /> </some-new-form>
Web components. At least their usage is plain HTML and could do what you want internally with the JS API.