simple error !!!!

J

Java_Forum

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>
 
L

Lasse Reichstein Nielsen

Java_Forum said:
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top