Using HTML dialog function in Pipeline Pilot

I am building a logout button, and thanks to Andrei I have the functionality working.  I want to add a confirmation prompt before proceeding.  I had figured out how to do this with the JavaScript CONFIRM function (and later found a nice example Andrei posted here a few months ago (link here : 

 

But this is a fairly plain frankly ugly dialog that cannot be styled.  I have a few alternative options working but they are not ideal, and what I really would like is a similar dialog to the one you get with javascript window.confirm, but with some styling and without the big title text "mysername.domain:port says" that you cannot turn off in window.confirm.

I have found a nice HTML5 function, dialog, but cannot figure out how I might call it from the GREEN reporting components.  Here are some nice links describing the function -- is it possible to do and does anyone have a working example.  Ideally it would not be triggered until I clicked a button and would open a modal dialog.  Here are some links describing the function: