Frames

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • abracad

    Frames

    Is it possible for a browser to support Javascript but not frames?

    If so, is it possible to use Javascript to test if a browser can support frames?

    Thanks
  • Philip Ronan

    #2
    Re: Frames

    abracad wrote:
    [color=blue]
    > Is it possible for a browser to support Javascript but not frames?[/color]

    I can disable them independently in IE
    [color=blue]
    > If so, is it possible to use Javascript to test if a browser can support
    > frames?[/color]

    <NOFRAMES>
    <SCRIPT type="text/javascript">
    alert("I guess so");
    </SCRIPT>
    </NOFRAMES>

    --
    Philip Ronan
    phil.ronanzzz@v irgin.net
    (Please remove the "z"s if replying by email)


    Comment

    • Randy Webb

      #3
      Re: Frames

      abracad wrote:[color=blue]
      > Is it possible for a browser to support Javascript but not frames?
      >
      > If so, is it possible to use Javascript to test if a browser can support frames?[/color]

      if (window.frames) {
      //the browser supports the frames collection
      }

      --
      Randy
      comp.lang.javas cript FAQ - http://jibbering.com/faq

      Comment

      • Philip Ronan

        #4
        Re: Frames

        Randy Webb wrote:
        [color=blue]
        > abracad wrote:[color=green]
        >> Is it possible for a browser to support Javascript but not frames?
        >>
        >> If so, is it possible to use Javascript to test if a browser can support
        >> frames?[/color]
        >
        > if (window.frames) {
        > //the browser supports the frames collection
        > }[/color]

        IE still returns the frames object when frames are disabled. So I guess you
        could use this method to check if the browser *can* support frames, but to
        check if the browser *does* support frames you would have to wrap a script
        inside a NOFRAMES element.

        --
        Philip Ronan
        phil.ronanzzz@v irgin.net
        (Please remove the "z"s if replying by email)


        Comment

        • abracad

          #5
          Re: Frames

          Philip Ronan <phil.ronanzzz@ virgin.net> wrote in message news:<BD9CA64D. 2429B%phil.rona nzzz@virgin.net >...[color=blue]
          > abracad wrote:
          >[color=green]
          > > Is it possible for a browser to support Javascript but not frames?[/color]
          >
          > I can disable them independently in IE
          >[color=green]
          > > If so, is it possible to use Javascript to test if a browser can support
          > > frames?[/color]
          >
          > <NOFRAMES>
          > <SCRIPT type="text/javascript">
          > alert("I guess so");
          > </SCRIPT>
          > </NOFRAMES>[/color]

          Thanks. OOI how to disable frames in IE?

          Comment

          Working...