Add confirmation to button

So in order to ‘confirm’ that a user really wants to do the action associated to a button, do we still use the ScriptAction with the JS confirm() function? If so, how do I call an action of an http variable? I have a roku http client with a keypress and a channel launch function. Before we switch channels, we really want a verification as it is super annoying when it happens by accident.

I figured out my second question. Use the App.SetDeviceAttribute function.

     App.SetDeviceAttribute("LivingRoomRokuLaunch","13")

Yes, that is correct.