Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > simple error !!!!

Reply
Thread Tools

simple error !!!!

 
 
Java_Forum
Guest
Posts: n/a
 
      09-04-2003
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>

 
Reply With Quote
 
 
 
 
Lasse Reichstein Nielsen
Guest
Posts: n/a
 
      09-04-2003
"Java_Forum" <(E-Mail Removed)> 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 - http://www.velocityreviews.com/forums/(E-Mail Removed)
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple program with a simple(?) error -- what's wrong? RichardOnRails Ruby 3 07-21-2008 01:26 PM
"error C2057: expected constant expression", "error C2466: cannot allocate an array of constant size 0". Why doesn't my simple program work??? hn.ft.pris@gmail.com C++ 13 01-22-2007 02:03 PM
Simple simple program error...please help tasheeta@gmail.com C++ 14 11-02-2005 12:52 PM
Re: Simple Simple question!!! Kevin Spencer ASP .Net 0 06-25-2004 05:25 PM
Re: Simple Simple question!!! ashelley@inlandkwpp.com ASP .Net 0 06-25-2004 04:18 PM



Advertisments