onload ?!!

A

amit

Hi group,

there is a Onload that happens when I refresh a page and I get an
Alert() as debug thinkg but the alert() doesn't happen when I delete a
record using a link on the same page!

Why? any idea?

Thanks,
Amit.
 
D

darwinist

amit said:
Hi group,

there is a Onload that happens when I refresh a page and I get an
Alert() as debug thinkg but the alert() doesn't happen when I delete a
record using a link on the same page!

The best onload to use for the whole page is the body's onload event

<html>
<head>
<script>
function dosomeshit(){}
</script>
</head>
<body onload="dosomeshit()">
....
</body>
</html>

Also any script inside script tags that's not in a function will
execute as it loads.

If you want to be told simply that a new page (not the one you're
writing) has finished loading, but not actually see all of its content,
you might consider an ajax call, which can notify you of a state
change.

Also you will get more help and of a better quality if you post the
offending code so people can see what you mean. I have no idea what you
mean so I just threw three vaguely related tips your way..

hth

http://darwinist.googlepages.com/htmldesktop.html
(A free, open-source web-based IDE, windowing system, and desktop
environment, in 31kB of html and javascript.)
 

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
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top