simple error !!!!

Discussion in 'Javascript' started by Java_Forum, Sep 4, 2003.

  1. Java_Forum

    Java_Forum Guest

    i have an error with this page, what's wrong, i am newbie in javascript
    programming,
    all i want is to perform a script before or after (anywhere) an html or jsp
    is loaded ?

    thanks for you help
    here is the code

    Code (Text):


    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    <HTML>

    <HEAD>

    <META name="GENERATOR" content="IBM WebSphere Studio">

    <TITLE>temp.html</TITLE>

    <!-- window.parent.menu.location.reload() -->

    <SCRIPT language="JavaScript">

    function reloadMenu()

    {

    alert("The page has finished loading.")

    }

    </SCRIPT>

    </HEAD>

    <BODY onLoad="reloadMenu()">

    my content's page

    </BODY>

    </HTML>

     
     
    Java_Forum, Sep 4, 2003
    #1
    1. Advertisements

  2. "Java_Forum" <> writes:

    > i have an error with this page, what's wrong,


    That depends on what the error is. As an error report, this is slightly
    worse than just throwing your hands in the air and shouting "Help!".

    > all i want is to perform a script before or after (anywhere) an html or jsp
    > is loaded ?


    What is wrong with this code? It executes the alert when the page is loaded.
    (An error report must contain:
    1: What you did (code is sufficient)
    2: What you expected to happen
    3: What really happened
    All in sufficient detail).

    /L
    --
    Lasse Reichstein Nielsen -
    Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
    'Faith without judgement merely degrades the spirit divine.'
     
    Lasse Reichstein Nielsen, Sep 4, 2003
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dave E
    Replies:
    7
    Views:
    934
    Josh Twist
    Jan 11, 2006
  2. Daniel Frey

    Simple Question - Simple Answer?

    Daniel Frey, Dec 28, 2004, in forum: XML
    Replies:
    4
    Views:
    1,108
    Daniel Frey
    Jan 12, 2005
  3. Replies:
    7
    Views:
    887
    Stig Brautaset
    Jul 23, 2003
  4. Eric
    Replies:
    2
    Views:
    547
    kbutterly
    Dec 7, 2006
  5. mathieu
    Replies:
    3
    Views:
    687
    mathieu
    Jan 6, 2007
  6. Pierre Couderc
    Replies:
    1
    Views:
    416
    Victor Bazarov
    Jul 29, 2005
  7. Replies:
    14
    Views:
    771
    Karl Heinz Buchegger
    Nov 2, 2005
  8. RichardOnRails
    Replies:
    3
    Views:
    285
    RichardOnRails
    Jul 21, 2008
Loading...