<script type="text/javascript">
function goFullscreen(id) {
var element = document.getElementById(id);
if (element.mozRequestFullScreen) {
element.mozRequestFullScreen();
} else if (element.webkitRequestFullScreen) {
element.webkitRequestFullScreen();
}
}
</script>
//Html code:
<video class="video_player" id="player" width="100%" controls="controls" autoplay="autoplay">
<source src="INPUT VIDEO URL HERE"/>
Your browser does not support the HTML5 video tag. Use a better browser!
</video>
<button onclick="goFullscreen('player'); return false">
View Fullscreen!
</button>
Code Example |
---|
Html :: html js make dropdown list checkbox |
Html :: html target |
Html :: html add vertical space below |
Html :: html link to download file |
Html :: html chatbot |
Html :: javascript on focus lost |
Html :: v-select reduce |
Html :: font awesome 6 pro |
Html :: bootstrap modal remove gray background |
Html :: bootstrap 5 background color |
Html :: tailwind input |
Html :: change choose file button text |
Html :: two divs in the same place |
Html :: custom checkbox with image css |
Html :: asp net mvc 5 add logo to navbar |
Html :: how to escape in html |
Html :: clear form value after submit |
Html :: java replace all html tags |
Html :: colspan 1.5 |
Html :: html redirect after alert |
Html :: how to add image in checkbox in html |
Html :: html css text style on a word |
Html :: html paragraph |
Html :: favicon.ico html |
Html :: tooltip react bootstrap |
Html :: html table basics |
Html :: bootstrap modal causes page shift |
Html :: link href |
Html :: html email button |
Html :: accordion |