Javascript Yes No Button.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sva0008
    New Member
    • Apr 2008
    • 19

    Javascript Yes No Button.

    Hi ,
    I have a form in that form i have a button named " GO Back "
    I want that whenever the user press the button a message window should pop out asking user:
    Do you want to save the form , if the user press yes then the form should be saved else if the user say no the window should close.

    can anyone please help me how to implement it.

    Thanks In Advance
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    You're looking for the confirm() method.

    Comment

    • vikas251074
      New Member
      • Dec 2007
      • 198

      #3
      When I click on confirm(), it does not display the content as supposed. It display the Mozilla <development center>

      I am not getting confirm() coding information.

      How can I get?

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        use the search field to get to the page. nevertheless, I fixed the link.

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          I usually copy/paste links, so it must've ended up a dead link when the Mozilla Developer Center pages were restructured.

          Comment

          • vikas251074
            New Member
            • Dec 2007
            • 198

            #6
            I am not getting any clue please help me. because searching this forum is fruitless.

            Regards

            Vikas

            Comment

            • Dormilich
              Recognized Expert Expert
              • Aug 2008
              • 8694

              #7
              Originally posted by vikas251074
              I am not getting any clue please help me.
              the clue is: confirm() (as already been posted)

              Comment

              Working...