Answers for "how to press a button throught the dev tools console"

0

how to press a button throught the dev tools console

document.getElementById('mainbar').addEventListener("click", function() 
{
    console.log('main bar clicked');
});

Using jQuery:

$('#buttonid').click();
Posted by: Guest on January-27-2022

Browse Popular Code Answers by Language