Clicking of Anchor <a> element - attribute of href is not executing

Click event is not executing the href javascript code.
We are getting below error in the chrome browser:

“Refused to run the JavaScript URL because it violates the following Content Security Policy directive: “script-src ‘self’ ‘wasm-unsafe-eval’ ‘inline-speculation-rules’”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-…’), or a nonce (‘nonce-…’) is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the ‘unsafe-hashes’ keyword is present.”

Here is code on HTML

<a onclick="$(this).css('pointer-events','none'); $(this).attr('disabled','disabled');"
 href="javascript:__doPostBack('proceedbtn','')" zn_id="32">
 Proceed to Payment&nbsp;&nbsp;

Here is the Get Element Selector

    "Selector": "NM",
    "browser": "chrome",
    "frame": "-1"
    "cssselector": "#proceedbtn"

Thanks in advance.

That is correct, chrome removed the ability to click links with code, when they force all extensions to use manifest v2
In those cases you need to use a physical click ( virtual= false )

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.