Hi,
Please help me.
How can i silence HTML5 video when page loads in JavaScript?
On page load the video should play automatically without and audio.
Hi makenzi.exc,
To silence the video use the muted attribute.
Refer below example.
HTML
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <style type="text/css"> body { font-family: Arial; font-size: 10pt; } </style> </head> <body> <video width="320" height="240" controls muted> <source src="https://www.aspsnippets.com/videos/welcome.mp4" type="video/mp4"> </video> </body> </html>
Demo
Screenshot
Downloads
Download Sample
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.