Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <head>
- <title>
- Rimuv Kebap
- </title>
- <meta charset="utf-8">
- </head>
- <body>
- <input type="text" id="inpt" value=""><br>
- <input type="button" id="btn" value="boink!"><br>
- <div id="outpt">
- </div>
- <script>
- var input = document.getElementById("inpt");
- var output = document.getElementById("outpt");
- var button = document.getElementById("btn");
- button.addEventListener("click",function() {
- if(input.value=="Rimuv Kebap"){
- output.innerHTML = '<iframe width="640" height="360" src="https://www.youtube.com/embed/ocW3fBqPQkU?autoplay=1" frameborder="0" allowfullscreen></iframe>'
- }
- else{
- output.innerHTML = input.value;
- }
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement