Page 65 - DCAP408_WEB_PROGRAMMING
P. 65

Unit 2: Creating Static Web Pages




          Scripts can examine and set properties of fields. They can also examine a small set of standard  Notes
          properties of the user agent, for instance the user’s name, the time of day, the type of user agent,
          and so on.
          Scripts can’t do anything that might jeopardize the user or the host machine. Scripts can’t send
          messages over the network, or read or write files. The library calls that are allowed are restricted
          to a very small and well defined set. These precautions are necessary for untrusted scripts.




              Task   It  is  envisaged  that script  interpreters  will  offer a  much wider  application
             programming interface to trusted scripts, as determined on the basis of a digital signature
             by a trusted third party. Analyze in group of four.

          Permitted Attributes for Form

              ACTION
               The ACTION attribute is a URL specifying the location to which the contents of the form
               is submitted to elicit a response. If the ACTION is missing, the URL for the document itself
               is assumed. The way data is submitted varies with the access protocol of the URL, and with
               the values of the METHOD and ENCTYPE attributes.
              METHOD
               This specifies variations in the protocol  used to send the form contents. It is currently
               restricted to GET (the default) or POST. The attribute was introduced to inform user agents
               which HTTP methods the server supports.
              ENCTYPE

               This attribute specifies the MIME content type to be used to encode the form contents.
               It defaults to the string: “application/x-www-form-urlencoded”
              SCRIPT

               This can be used to give a URI for a script. The scripting language and the interface with the
               user agent is not part of the HTML 3.0 specification.

          Self Assessment

          Fill in the blanks:
          13.  If  you  do  not  specify  a  border  attribute  the  table  will  be  displayed  without
               any………………...
          14.  Scripts can examine and set properties of………………..

          2.8 Frames

          Frames divide a browser window into two or more  document windows, each displaying  a
          different document, or a different part of the same document. Frames in an HTML document can
          cause a web page to appear to be divided into multiple, scrollable regions. For each frame, you
          can assign a name, a source document locator, dimensions, border alignment and decorations,
          scroll and resize behaviors, loading and unloading behavior, file and topic  maps, and style
          sheets.





                                           LOVELY PROFESSIONAL UNIVERSITY                                   59
   60   61   62   63   64   65   66   67   68   69   70