7 Replies Latest reply on Sep 25, 2008 7:55 AM by George_Johnson

    [JS] Very simple javascript just not working - very frustrating

    Skempy Level 1
      Hello,

      This very simple script attached to a button only ever takes me to the second named destination "page4"!

      var myVar = 3
      if (myVar = 3)
      {
      this.gotoNamedDest("page3")
      }
      if (myVar = 4)
      {
      this.gotoNamedDest("page4")
      }

      Is there something wrong with the syntax?

      Thanks
      simon Kemp