confirm

  • The sample example for confirm

    window.confirm("Are you sure you want to quit?")

  • Let's provide another example, where a confirm box will allow users to choose between going to two places:

    <script>
    <!--
    function ss()
    {
    var ok=confirm('Click "OK" to go to GS Travel experiences, "CANCEL" to go to GS Dot net faqs')
    if (ok)
    location="http://www.travelwithgs.blogspot.com"
    else
    location="http://www.gsdotnet.blogspot.com"
    }
    //-->
    </script>

0 comments :

Post a Comment

> Related Posts with Thumbnails
 

Copyright © 2012. GS dot net - All Rights Reserved - Design by BTDesigner - Proudly powered by Blogger