Hi,
I’m trying to Inject JS code to click the following button “Vis/ret”:
I first tried with document.getElementById(“name-of-the-button”).click() and document.queryselector - both of which the button does not respond to.
Is is possible to use the above code as shown in the screenshot: “javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(“ctl00$CPHMain$InvoiceLineRepeater$ctl00$ViewInvoiceLine”, “”, true, “”, “”, false, true))”
I tried, but it gives me error message: “ReferenceError: WebForm_DoPostBackWithOptions is not defined”
Any suggestions?