Join Slack
Powered by
Does anyone know if you can call a ClientScript fu...
# suitescript
e
eblackey
08/25/2021, 6:18 PM
Does anyone know if you can call a ClientScript function directly without coming from NetSuite button? For example, is there a way to trigger a ClientScript function from an anchor link? For example...
Copy code
<a href="javascript:clientScriptFunction()">Click</a>
b
battk
08/25/2021, 6:19 PM
Add your function to the window global
battk
08/25/2021, 6:23 PM
more modern would be using
addEventListener
on your anchor's
click event
e
eblackey
08/25/2021, 6:29 PM
Thanks!
Open in Slack
Previous
Next