I am not very good with javascript codes so if someone can help me I would appreciate it
I'm trying to hide all the elements "Button" after use innerHTML. My current code is this below and I can not figure out how to make it work.
<script>
function print() {
var content = document.getElementById('search_result').innerHTML;
new_page = window.open('about:blank');
new_page.document.write(content);
new_page.window.print();
new_page.window.close();
}
</script>