@m4zuper Hey, man, the issue still occurred, even though I added what you said. Is this have any relation with a fingerprint? Because I don't use that tho, as you saw in my test script. I think this is related to this post : https://community.bablosoft.com/topic/19823/playing-youtube-with-vpn-extension-white-blank-bas-browser/2
Need help with JavaScript block
-
How to click button in browser using block "JavaScript" ??????
Code of target button:
<input type="button" class="link-button" onclick="goToLinkByLeafCode(this, 'objectHrefTerm')" value="/ View" id="1199" name="1200">i wrote such code in block "JavaScript":
document.getElementsById('1199').click();or
$("#1199).click(); (using JQuery)
or
document.getElementsByClassName('link-button')[1].click(); (trying to click anything)
Nothing works.
What is wrong with my code?
-
@sergerdn said in Need help with JavaScript block:
var button = document.getElementById('1199');
if (button) {
button.click();
} else {
console.error('Button with ID 1199 not found.');
}Thank you. But it doesn't work too. Seems issue is not in JS code but in BAS.