Question about OnClick Event preventDefault

I want to use OnClick Event when a link or button is clicked on
If status != 1
then
alert(“You are not allowed to use this link or button”)
RunJS{event.preventDefault(), event.stopPropagation()}
else
continue or goto the link ref

The question is how do I stop further execution of the link after the alert.

Does it automatically continue to the link or do I need a goto or a command to have it go to the URL the user had clicked on?

Community Page
Last updated: