I am new in Javascrpt.I have to develop floating back to top button for my long webpage in javascript.I cannot use jquery for this.The button should be visible when scrolling below the 200 px.and position should be above the footer.

Can anyboady please help me to give any example of this..In google most of the examples are in jquery.