<applet ... onload="Alert('Hi');">

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

    #1

    <applet ... onload="Alert('Hi');">

    Nothing. The applet does what it is supposed to do but onload never fires.
    Any suggestions what may be the problem here? Thanks.

    --
    George Hester
    _______________ _______________ ____

  • Ivo

    #2
    Re: &lt;applet ... onload=&quot;Al ert('Hi');&quot ;&gt;

    "George Hester" asks[color=blue]
    > Re: <applet ... onload="Alert(' Hi');">
    > Nothing. The applet does what it is supposed to do but onload never[/color]
    fires.[color=blue]
    > Any suggestions what may be the problem here? Thanks.[/color]

    There is no problem. It 's just that the "onload" attribute is supported on
    the body, images, framesets and one or two other elements, but not applets,
    so the whole thing is respectfully ignored by the browser.
    Also, alert() is all lowercase.

    HTH
    Ivo

    BTW, please put the message in the message box and the subject on the
    subject line. Many people never see subject lines.


    Comment

    • Thomas 'PointedEars' Lahn

      #3
      Re: &lt;applet ... onload=&quot;Al ert('Hi');&quot ;&gt;

      George Hester wrote:[color=blue]
      > Nothing. The applet does what it is supposed to do but onload
      > never fires. Any suggestions what may be the problem here? Thanks.[/color]

      The "applet" element does not have an "onload" attribute.
      Besides, it is is deprecated in HTML 4.01 in favor of the
      "object" element.

      <http://www.w3.org/TR/html4/struct/objects.html#ed ef-APPLET>


      PointedEars

      Comment

      • George Hester

        #4
        Re: &lt;applet ... onload=&quot;Al ert('Hi');&quot ;&gt;

        Mmm... Microsoft says it does. Oh well. Thanks.

        --
        George Hester
        _______________ _______________ ____
        "Ivo" <no@thank.you > wrote in message
        news:410c3948$0 $191$cd19a363@n ews.wanadoo.nl. ..[color=blue]
        > "George Hester" asks[color=green]
        > > Re: <applet ... onload="Alert(' Hi');">
        > > Nothing. The applet does what it is supposed to do but onload never[/color]
        > fires.[color=green]
        > > Any suggestions what may be the problem here? Thanks.[/color]
        >
        > There is no problem. It 's just that the "onload" attribute is supported[/color]
        on[color=blue]
        > the body, images, framesets and one or two other elements, but not[/color]
        applets,[color=blue]
        > so the whole thing is respectfully ignored by the browser.
        > Also, alert() is all lowercase.
        >
        > HTH
        > Ivo
        >
        > BTW, please put the message in the message box and the subject on the
        > subject line. Many people never see subject lines.
        >
        >[/color]

        Comment

        Working...