Hello,
I'm using HTML & ASP Classic. Does someone knows if there is something like "After Load" event?
Thanks
Hello,
I'm using HTML & ASP Classic. Does someone knows if there is something like "After Load" event?
Thanks
There are several options, depending on what you need to do.
On the client side, if you are using javascript, you can use the OnLoad
event that will fire once the page has finished loading. This is commonly done on the <body>
tag and calls a javascript function of your choice:
<body onload="myFunction();">
If you are using a javascript library like jQuery, it has some built in functionality that helps with this.
If you are looking for a server side event that will tell you that the page has finished loading, there is no such event (classic or asp.net). One way to emulate such a thing would be by using a javascript function to make an http request (using XMLHttpRequest
) to the server to let it know the page has finished loading.