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:
    
    <!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. Advertising

  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. Advertising

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. Replies:
    0
    Views:
    575
  2. Kevin Spencer

    Re: Simple Simple question!!!

    Kevin Spencer, Jun 25, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    677
    Kevin Spencer
    Jun 25, 2004
  3. Dave E
    Replies:
    7
    Views:
    759
    Josh Twist
    Jan 11, 2006
  4. Replies:
    14
    Views:
    547
    Karl Heinz Buchegger
    Nov 2, 2005
  5. RichardOnRails
    Replies:
    3
    Views:
    137
    RichardOnRails
    Jul 21, 2008
Loading...

Share This Page