<form> <input type=button value="confirm dialog" onclick="confirm( 'This program is created by JavaScript' )"> </form>