I have a button in Coldfusion:
<cfinput name="Accept" type="button" value="Acknowledge"
onclick="ColdFusion.Window.hide('my_alert')">
Currently the button, when clicked, hides the alert window. I’d also like the button to set my variable var1 to YES. Is there anyway I can add that to onclick? How would I go about doing that? Thank you.
I assume you want to set a javascript variable? If so, use ColdFusion.Window.onHide() function, like so: