If you are using the "insert button" feature in Visual Editor (not just a standard HTML button, but rather the PHPRunner item that gives you the 3 tab option of before client, on server, and after client) and would like to be able to use a confirm dialog box whenever the button is pressed you will need to add this line of code before your javascript confirmation code:
this.setEnabled();
Then you can add a standard confirm dialog such as:
if (confirm('You have not checked off the "Are you sure you want to blah, blah, blah?')) {}
else {return;};
I was told that future versions of PHPRunner will not require "this.Enabled();" line, as it seems this was a very minor bug in latest version I was using Build 5482. For now, if you want to cancel the action after clicking the button you've inserted this is the best way to do it. Alternatively, you could forgo that line of code and simply add a "window.location.reload();" as part of your "if false" argument in your confirm statement... this would cancel the button click and reload page (reload is necessary because otherwise if you click on that button once, you will not be able to click on it again without refreshing the page). Anyhow, I recommend simply using the "this.setEnabled();" solution.
This is a minor tip & trick, but useful nonetheless for all of us in PHPR.
Cheers,