javascript - I am Building a Youtube subscribe download gate.. and I want a button to appear after clicking the subscribe button -


hey guys want build youtube subscribe gate... files can downloaded if subscribe button clicked. here have youtube subscribe button , on clicking subscribe, want button appear download link.

you make 2 buttons

  1. to subscribe (say, id='subscribe')
  2. to download (say, id='download')

and hide download button using css

#download { visibility: hidden; } 

then create first button

<button id="subscribe" href="xyz" onclick="download();">subscribe</button> 

and in tag javascript, write function:

function download() {     document.getelementbyid("subscribe").visibility = "hidden";     document.getelementbyid("download").visibility = "visible"; } 

this hide 'subscribe' , show download button, once 'subscribe' has been clicked.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -