[Javascript] wrox code question

Peter Brunone peter at brunone.com
Mon Jul 9 14:47:17 CDT 2001


Carl,

    Cutting and pasting this code, I don't have a problem getting the correct number to show up with a question.  Now, I'm using IE6, but I can't imagine changing the structure of the language between browser versions like that (especially since JS has been pretty standardized for a few years now).

  ----- Original Message ----- 
  From: carl 
  To: javascript at LaTech.edu 
  Sent: Monday, July 09, 2001 2:29 PM
  Subject: [Javascript] wrox code question


  Sorry if this has been beaten up before, but I am working through the Wrox Beginning Javascript book, and have one thing that I dont understand (well, more than one thing, but only one question here)

  the code, from their site, is

  <snip/>

  this is from chapter 6, if anyone has the book and wants to read about the intent of the page.

  My question is:  the number that appears in the text box at the top of the page is correct the first time the page is loaded, but no matter how many times I reload the number stays the same.  Different questions from the question array do appear, and an alert shows that the value of questionNumber does change at random. 
  Q:  why does the indicated number NOT change when the page is refreshed.

  This happens in IE 4 and 5.5, have not tried on a Netscape machine.

  Thanks, looking forward to a lot of learning from the list, hoping to contribute something useful someday
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010709/4e82a5a0/attachment.htm>


More information about the Javascript mailing list