Loading ...
Sorry, an error occurred while loading the content.

File - Conform Method.html

Expand Messages
  • ibi_edu@yahoogroups.com
    Confirm Method var question = What is 10 + 10 ? ; var answer = 20; var Response =
    Message 1 of 276 , Nov 30, 2008
    View Source
    • 0 Attachment
      <html>
      <head>
      <title>
      Confirm Method
      </title>
      <script language="javascript">
      var question = "What is 10 + 10 ?";
      var answer = 20;
      var Response = prompt(question,"0");
      for (count=1;count<3;count++)
      {
      if(Response!=answer)
      {

      if (confirm("Wrong,Press OK For Anather Chance"))
      {
      Response=prompt(question,"0");
      }
      else
      {
      alert("Better Luck Next Time");
      count=3;
      }
      }

      else
      {
      alert("Great!! You Are Right");
      count=3;
      }
      }
      var output= (Response==answer)?correct:incorrect;
      document.write("<br>");
      document.write(output);
      </script>
      </head>
      <body>
      </body>
      </html>
    • ibi_edu@yahoogroups.com
      Confirm Method var question = What is 10 + 10 ? ; var answer = 20; var Response =
      Message 276 of 276 , Apr 13 2:38 AM
      View Source
      • 0 Attachment
        <html>
        <head>
        <title>
        Confirm Method
        </title>
        <script language="javascript">
        var question = "What is 10 + 10 ?";
        var answer = 20;
        var Response = prompt(question,"0");
        for (count=1;count<3;count++)
        {
        if(Response!=answer)
        {

        if (confirm("Wrong,Press OK For Anather Chance"))
        {
        Response=prompt(question,"0");
        }
        else
        {
        alert("Better Luck Next Time");
        count=3;
        }
        }

        else
        {
        alert("Great!! You Are Right");
        count=3;
        }
        }
        var output= (Response==answer)?correct:incorrect;
        document.write("<br>");
        document.write(output);
        </script>
        </head>
        <body>
        </body>
        </html>
      Your message has been successfully submitted and would be delivered to recipients shortly.