i want with Javascript after website load, automatic run one button click (so run button)
this is button information and i want this button run when website will be load
i want with Javascript after website load, automatic run one button click (so run button)
this is button information and i want this button run when website will be load
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>
DOMContentLoaded
andwindow.onload
.