You can do this using simple Javascript
if (document.readyState == "completed") {
alert("Your page is loaded");
}
Return Value : A String, representing the status of the current document.
One of five values:
For more details visit W3Schools - document.readystate .
Hope this solves your query.
I think what you are searching for is the javascript/HTML onLoad()
event. It's called when a page has been loaded, as an HTML tag you can add a function call which will be executed once the page is loaded and same goes for Javascript where you can create an eventListener to call a function following the same event.
Here is an helpfull link: OnLoad W3School
Window.onload() method detect when a page is loaded. may this can be helpful
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.