943,169 Members | Top Members by Rank

Ad:
Sep 1st, 2010
0

page completely loaded

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
cocoll is offline Offline
65 posts
since Jul 2010
Sep 5th, 2010
0
Re: page completely loaded
try
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. window.onload = function() {
  2. // and your code goes here
  3. };

This will execute after all images, external resources and the html page have been loaded
Reputation Points: 10
Solved Threads: 5
Light Poster
lambing is offline Offline
30 posts
since Feb 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: JQYERY AJAX Callback function value
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Landing Page Issues





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC