Is this what you were looking for?
window.onload = timeInfo("automatically on load,");
function timeInfo(message) {
console.log(message + " called function");
}
document.getElementById("liked").addEventListener("click", function() {
timeInfo("clicking button");
});
<div class="author_other_button">
<button id="liked" class="likebuttonliked">მოწონებულია</button>
</div>
1
solved run button working, when website will be load [closed]