Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #press #button #throught #dev #tools #console
ADD COMMENT
Topic
Name
4+1 =