looking for list of javascript - IE commands

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ÂÑTØÑ

    looking for list of javascript - IE commands

    Hi,

    I was looking for a list of commands, but I can't find it.
    It's about commands you can type in the Internet Explorer adress bar, to get
    some information about a website.
    For instance "javascript:ale rt(document.las tmodified)" to find out when the
    website was updated.
    Can someone help me out?
    Thanx in advance,

    Anton


  • Laurent Bugnion, GalaSoft

    #2
    Re: looking for list of javascript - IE commands

    Hi,

    ÂÑTØÑ wrote:[color=blue]
    > Hi,
    >
    > I was looking for a list of commands, but I can't find it.
    > It's about commands you can type in the Internet Explorer adress bar, to get
    > some information about a website.
    > For instance "javascript:ale rt(document.las tmodified)" to find out when the
    > website was updated.
    > Can someone help me out?
    > Thanx in advance,
    >
    > Anton[/color]


    The javascript: pseudo-protocol allows you to type and execute any
    script, as long as it's a one liner (which allows a LOT of commands if
    you master the language). Statements must be separated by a semicolon ';'

    So in short, you can take any supported JavaScript command, and use it
    this way. For a list of JavaScript methods/attributes, refer to your
    browser's documentation. For myself, I like
    <URL:
    http://devedge.netscap e.com/library/manuals/2000/javascript/1.5/reference/>
    and (though it's obsolete)
    <URL:
    http://devedge.netscap e.com/library/manuals/2000/javascript/1.3/reference/frames.html>

    HTH,

    Laurent
    --
    Laurent Bugnion, GalaSoft
    Webdesign, Java, JavaScript: http://www.galasoft-LB.ch
    Private/Malaysia: http://mypage.bluewin.ch/lbugnion
    Support children in Calcutta: http://www.calcutta-espoir.ch

    Comment

    • Grant Wagner

      #3
      Re: looking for list of javascript - IE commands

      "ÂÑTØÑ" wrote:
      [color=blue]
      > Hi,
      >
      > I was looking for a list of commands, but I can't find it.
      > It's about commands you can type in the Internet Explorer adress bar, to get
      > some information about a website.
      > For instance "javascript:ale rt(document.las tmodified)" to find out when the
      > website was updated.
      > Can someone help me out?
      > Thanx in advance,
      >
      > Anton[/color]

      Actually, typing "javascript:ale rt(document.las tmodified)" into the address bar
      of IE will alert "undefined" . What you are looking for is
      "javascript:ale rt(document.las tModified)". The value of the information returned
      this way is questionable, since the same information can be retrieved in
      practically any GUI browser by right-clicking the page and choosing "Properties "
      or "View Page Info".

      As for a "list of commands to get information about a website" using this
      method, basically anything that can be executed in JavaScript can be executed
      here, so you have access to all the objects in the DOM and any methods and
      properties they support.

      That isn't very much help, but the problem is, there are hundreds, if not
      thousands, or things that can be retrieved from the DOM using the mechanism you
      are describing. For example:

      javascript:s=[];for(i=0; i < window.frames.l ength; i++) {
      s.push(window.f rames[i].name); for(j =0; j <
      window.frames[i].document.forms .length; j++) { s.push('\t' +
      window.frames[i].document.forms[j].name); for (k=0; k <
      window.frames[i].document.forms[j].length; k++) { s.push('\t\t' +
      window.frames[i].document.forms[j].elements[k].name); } } } alert(s.join('\ n'));

      gives you a hierarchy of all the elements on all the forms in all the frames in
      the current document. Again, this information is of questionable value,
      especially considering the same information is available in a much more
      digestible form in Mozilla's DOM Inspector.

      --
      | Grant Wagner <gwagner@agrico reunited.com>

      * Client-side Javascript and Netscape 4 DOM Reference available at:
      *


      * Internet Explorer DOM Reference available at:
      *
      Gain technical skills through documentation and training, earn certifications and connect with the community


      * Netscape 6/7 DOM Reference available at:
      * http://www.mozilla.org/docs/dom/domref/
      * Tips for upgrading JavaScript for Netscape 7 / Mozilla
      * http://www.mozilla.org/docs/web-deve...upgrade_2.html


      Comment

      • ÂÑTØÑ

        #4
        Re: looking for list of javascript - IE commands

        "Laurent Bugnion, GalaSoft" <galasoft-LB@bluewin_NO_S PAM.ch> schreef[color=blue]
        > The javascript: pseudo-protocol allows you to type and execute any
        > script, as long as it's a one liner (which allows a LOT of commands if
        > you master the language). Statements must be separated by a semicolon ';'
        > So in short, you can take any supported JavaScript command, and use it
        > this way. For a list of JavaScript methods/attributes, refer to your
        > browser's documentation. For myself, I like
        >[/color]
        http://devedge.netscap e.com/library/manuals/2000/javascript/1.5/reference/>[color=blue]
        > and (though it's obsolete)
        >http://devedge.netscape.com/library/....3/reference/f[/color]
        rames.html>[color=blue]
        > HTH,
        > Laurent[/color]

        "Grant Wagner" <gwagner@agrico reunited.com> schreef[color=blue]
        > the problem is, there are hundreds, if not
        > thousands, or things that can be retrieved from the DOM using the[/color]
        mechanism you[color=blue]
        > are describing. For example:
        > javascript:s=[];for(i=0; i < window.frames.l ength; i++) {
        > s.push(window.f rames[i].name); for(j =0; j <
        > window.frames[i].document.forms .length; j++) { s.push('\t' +
        > window.frames[i].document.forms[j].name); for (k=0; k <
        > window.frames[i].document.forms[j].length; k++) { s.push('\t\t' +
        > window.frames[i].document.forms[j].elements[k].name); } } }[/color]
        alert(s.join('\ n'));[color=blue]
        > gives you a hierarchy of all the elements on all the forms in all the[/color]
        frames in[color=blue]
        > the current document. Again, this information is of questionable value,
        > especially considering the same information is available in a much more
        > digestible form in Mozilla's DOM Inspector.
        > Grant Wagner[/color]


        Thanks, I think this will help me.
        Somebody sent me this tip as well:
        Bookmarklets - Free tools for power surfing!; Tiny tools you keep like bookmarks for better surfing and searching. Work for Windows, Macintosh, Unix, on Netscape or Explorer. Each tool is a small JavaScript application which you can bookmark directly from the page and use from your Bookmarks or Favorites menu.

        Best regards,
        Anton


        Comment

        • ÂÑTØÑ

          #5
          Re: looking for list of javascript - IE commands

          "Laurent Bugnion, GalaSoft" <galasoft-LB@bluewin_NO_S PAM.ch> schreef[color=blue]
          > The javascript: pseudo-protocol allows you to type and execute any
          > script, as long as it's a one liner (which allows a LOT of commands if
          > you master the language). Statements must be separated by a semicolon ';'
          > So in short, you can take any supported JavaScript command, and use it
          > this way. For a list of JavaScript methods/attributes, refer to your
          > browser's documentation. For myself, I like
          >[/color]
          http://devedge.netscap e.com/library/manuals/2000/javascript/1.5/reference/>[color=blue]
          > and (though it's obsolete)
          >http://devedge.netscape.com/library/....3/reference/f[/color]
          rames.html>[color=blue]
          > HTH,
          > Laurent[/color]

          "Grant Wagner" <gwagner@agrico reunited.com> schreef[color=blue]
          > the problem is, there are hundreds, if not
          > thousands, or things that can be retrieved from the DOM using the[/color]
          mechanism you[color=blue]
          > are describing. For example:
          > javascript:s=[];for(i=0; i < window.frames.l ength; i++) {
          > s.push(window.f rames[i].name); for(j =0; j <
          > window.frames[i].document.forms .length; j++) { s.push('\t' +
          > window.frames[i].document.forms[j].name); for (k=0; k <
          > window.frames[i].document.forms[j].length; k++) { s.push('\t\t' +
          > window.frames[i].document.forms[j].elements[k].name); } } }[/color]
          alert(s.join('\ n'));[color=blue]
          > gives you a hierarchy of all the elements on all the forms in all the[/color]
          frames in[color=blue]
          > the current document. Again, this information is of questionable value,
          > especially considering the same information is available in a much more
          > digestible form in Mozilla's DOM Inspector.
          > Grant Wagner[/color]


          Thanks, I think this will help me out.
          Somebody sent me this tip as well:
          Bookmarklets - Free tools for power surfing!; Tiny tools you keep like bookmarks for better surfing and searching. Work for Windows, Macintosh, Unix, on Netscape or Explorer. Each tool is a small JavaScript application which you can bookmark directly from the page and use from your Bookmarks or Favorites menu.

          Best regards,
          Anton




          Comment

          Working...