1 Reply Latest reply: Feb 19, 2011 9:40 AM by MurraySummers RSS

    Syntax Error where ?  ( CS5 )

    GESYMSB Community Member

      I keep getting an error on this script, at line 3, but I can't see why?

       

      <SCRIPT language="javascript">
      function fillScreen()
      { self.moveTo(0,0);
        self.resizeTo(screen.availWidth,screen.availHeight);
      }
      </SCRIPT>

       

      self.moveTo(0,0);  <--- Syntax Error on Dreamweaver CS5

      Any Ideas ?     Thanks

       

      error.jpg

        • 1. Re: Syntax Error where ?  ( CS5 )
          MurraySummers CommunityMVP

          Most modern browsers will block your attempt to do this nasty trick, you know?

           

          Your job is to make the web page accommodate all visitors, not make the visitors accommodate the web page.

           

          CS5 is not giving me a syntax error with that antique code (I'm guessing it's vintage 1990 or thereabouts).

           

          Why do you need it?