hello!
is there something in javascript to make sure that the page is completely loaded and the i execute a function in javascript.
because i have a web page that i have an image slider,so if i open this page in same page before (window.location="source") so the page is loading very fast,but if i use window.open,the page will open in a new window but very slow and the slide show begin but i see that the page is still loading the images,so as result no images is shown.
so i need to execute the function for the images slider after the page had completely loaded.
thank you for help.

try

window.onload = function() {
    // and your code goes here
};

This will execute after all images, external resources and the html page have been loaded

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.