Confirmation box ... nothing happens (why???)

Hello all,

I add this code within a blank application that run several other application in sequence.
I want to add a Yes/No message to ask the user if he really want to carry on.
The problem is that I can’t see nothing when I run the blank appl.
Now I added the 1st line and something happens but it’s very ugly to see a little button on top left
Then I need to click on it to show the alert box…
Is not possible something that make this automatically and in a easier way… ?

If I answer Yes … how can I intercept that ?? using a if ??? { } else { } ?

echo “<input type=‘submit’ onclick=‘clicked(event)’ />”;

echo “<script>
function clicked(e)
if(!confirm(‘Are you sure?’))e.preventDefault();