document.getElementById('certificate_info_btn').name code example
Example 1: getelementbyid
document.getElementById("someid");
Example 2: get document by id
var element = document.getElementById(id);
document.getElementById("someid");
var element = document.getElementById(id);