Guest User

Untitled

a guest
Nov 2nd, 2013
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.58 KB | None | 0 0
  1.     <!-- Morning Podcast selector -->
  2.    
  3.     <form oninput="result.value=datemorning.value">
  4.    
  5.         <label for="datemorning"></label> <input id="datemorning" type="date" value="2013-01-01"><br>
  6.         <output for="datemorning" name="result"></output>
  7.        
  8.             <script>
  9.             var strLink =document.getElementById("datemorning").value;
  10.             document.getElementById("linkMorning").setAttribute("href",strLink + ".mp3");
  11.             </script><br>
  12.            
  13.         <br>
  14.         <a id="linkMorning"><button>Download</button></a>
  15.        
  16.     </form>
Advertisement
Add Comment
Please, Sign In to add comment