Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

play iframe video onclick a link javascript

   <iframe id="video1" width="450" height="280" src="http://www.youtube.com/embed/TJ2X4dFhAC0?enablejsapi" frameborder="0" allowtransparency="true" allowfullscreen></iframe>
    <a href="#" id="playvideo">Play button</a>
    <script>
     $("#playvideo").click(function(){
      $("#video1")[0].src += "?autoplay=1";
     });
    </script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: visual studio appsettings development json not nested appsettings.json 
Javascript :: string reduction javascript 
Javascript :: update table remove a key from json object mysql 
Javascript :: fetch in js 
Javascript :: jquery get value name uploaded file 
Javascript :: how to insert image by javascript 
Javascript :: integer check in javascript 
Javascript :: sleep function javascript 
Javascript :: regular expression replace a dot 
Javascript :: how to get today date in javascript 
Javascript :: nativescript vue back button handler 
Javascript :: jquery radio button change 
Javascript :: how to differentiate latitude and longitude from same value in different textbox 
Javascript :: Cannot call `JSON.parse` with item bound to `text` because null or undefined [1] is incompatible with string 
Javascript :: como pegar as propriedades css de um elemento :after html com js 
Javascript :: clean up async requests in react useEffect hook using abort controller 
Javascript :: jquery select radio 
Javascript :: LogBox 
Javascript :: generate random alphanumeric string javascript 
Javascript :: jquery change span tag text 
Javascript :: convert string array to objectid mongoose 
Javascript :: javascript check if first of type 
Javascript :: verta sample jalali laravel problem return object json 
Javascript :: c++ switch 
Javascript :: how to make a discord.js 8 ball command 
Javascript :: javascript calculate days between dates 
Javascript :: jquery input change while typing 
Javascript :: tolocaletimestring short 
Javascript :: js simulate click 
Javascript :: how to terminate a program in js 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =