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
- to subscribe (say,
id='subscribe'
) - 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
Post a Comment