Can you write HTML code when enter website and play the songs automatically?
by Liguma - Monday November 20, 2023 at 03:27 AM
#1
ฉันเป็นมือใหม่เลยไม่ค่อยรู้อะไรมาก
Reply
#2
https://www.w3schools.com/TAgs/att_audio_autoplay.asp
Reply
#3
(Nov 20, 2023, 03:27 AM)Liguma Wrote: ฉันเป็นมือใหม่เลยไม่ค่อยรู้อะไรมาก

Depends, can you finger my balls?

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Spamming weird sex messages.
Reply
#4
(Nov 21, 2023, 08:33 PM)joepa Wrote: https://www.w3schools.com/TAgs/att_audio_autoplay.asp

Thank you, brother-in-law.
Reply
#5
Alright blissful
Reply
#6
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>title</title>
</head>
<body>
    <audio id="myAudio" controls>
        <source src="......" type="audio/mp3">
    </audio>
    <script>
    document.addEventListener("DOMContentLoaded", function() {
    var audio = document.getElementById("myAudio");
    audio.play();
    });
    </script>
</body>
</html>
Reply
#7
okay superb
Reply
#8
(Nov 25, 2023, 05:02 PM)antinomyduelist Wrote:
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>title</title>
</head>
<body>
    <audio id="myAudio" controls>
        <source src="......" type="audio/mp3">
    </audio>
    <script>
    document.addEventListener("DOMContentLoaded", function() {
    var audio = document.getElementById("myAudio");
    audio.play();
    });
    </script>
</body>
</html>

Thank you very much for the code.
Reply
#9
I'm pretty sure most browsers block audio / videos from auto-playing, so a get around is a click to enter (I.E the user interacts with the page before entering) which then lets the audio or video autoplay. It's why practically all biolinks have a click to enter. If you still need code to fit this then send me a DM
Tongue
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Bypassing Modern AV (Metasploit Method) godco99 4 290 9 hours ago
Last Post: nobinary
  Cardable Giftcard Websites AKASHIC 10 341 Today, 12:16 AM
Last Post: fokfdo223
  Acunetix 23.7 lolol 37 7,231 Apr 29, 2026, 09:37 AM
Last Post: Usercomplex
  [FREE] Database Searcher Telegram odanbtw 1,004 80,525 Apr 24, 2026, 12:13 PM
Last Post: FAKE_NBOBN00
  ✅ Top 10 Google Dorks For SQL Injections NextSoftGroup 9 231 Apr 24, 2026, 02:54 AM
Last Post: elliotalderson4

Forum Jump:


 Users browsing this forum: 1 Guest(s)