amit wrote:
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.)
Why? any idea?
Thanks,
Amit.