Safari: targeting frames with a javascript event does not work.

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

    Safari: targeting frames with a javascript event does not work.

    The following code will work in Mac IE 5.1, but not in Safari 1.0
    (v85). Anyone have any hints?

    <!-- Code begins -->
    <html>
    <body>

    <a href="text2.htm l" target="frameCo ntent"
    onMouseDown="al ert('Hi.');">Pu t text2.html in frameContent</a>

    <iframe width="200" height="200" src="text.html" frameborder="ye s"
    scrolling="yes" name="frameCont ent">

    </body>
    </html>
    <!-- Code ends -->
  • David Dorward

    #2
    Re: Safari: targeting frames with a javascript event does not work.

    Marc wrote:
    [color=blue]
    > The following code will work in Mac IE 5.1, but not in Safari 1.0
    > (v85). Anyone have any hints?[/color]

    W3C's easy-to-use markup validation service, based on SGML and XML parsers.

    [color=blue]
    > <iframe width="200" height="200" src="text.html" frameborder="ye s"
    > scrolling="yes" name="frameCont ent">[/color]

    Where is </iframe>?
    [color=blue]
    > </body>[/color]
    --
    David Dorward http://dorward.me.uk/

    Comment

    • Marc

      #3
      Re: Safari: targeting frames with a javascript event does not work.

      Thanks. That was clumsy of me to not include the closing iframe tag. I
      also corrected any other errors that the validator caught. However, I
      am still unable to get Safari to put 'text2.html' into the
      'frameContent' target. Anyone else have solutions?


      <!-- Code begins -->
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">
      <html>
      <head>
      <title>iframe tester</title>
      </head>
      <body>

      <a href="text2.htm l" target="frameCo ntent"
      onMouseDown="al ert('Hi.');">Pu t text2.html in frameContent</a>

      <iframe width="200" height="200" src="text.html" frameborder="1"
      scrolling="yes" name="frameCont ent"></iframe>

      </body>
      </html>
      <!-- Code ends -->

      Comment

      Working...