Confirm Dialog box in Visualforce
Visualforce Page:
<apex:page tabstyle="account">
<apex:form>
<apex:pageBlock>
<apex:pageBlockSection title="Confirm dialog Demo" collpsible="true">
<apex:outputText> please click on button to populate confirm dialog</apex:outputText>
<apex:commandButton value="click to confirm" onclick="return confirm('are you want to submit');"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
to see click:http://apl-developer-edition.ap1.force.com/confirm_Page
Visualforce Page:
<apex:page tabstyle="account">
<apex:form>
<apex:pageBlock>
<apex:pageBlockSection title="Confirm dialog Demo" collpsible="true">
<apex:outputText> please click on button to populate confirm dialog</apex:outputText>
<apex:commandButton value="click to confirm" onclick="return confirm('are you want to submit');"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
to see click:http://apl-developer-edition.ap1.force.com/confirm_Page