• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

Loading the table content after the page loads???

Hi to all,

I am writing this question to this section but I am not sure it really fits here. Anyway I have a table on my upper part of the page this table's content calls to an external php file (this file refers to a javascript that counts the words on the page...) I want to call the file after the page loads for counting the words correctly. I can do this by putting the table at the bottom of the page but I want to show the content on the upper part of the page is there a way to do this by php or javascript?

I think the code must be like php timers that says this page loads in 4.37 seconds... But I am not sure

Any help greatly appreciated,
Cem Louis
0
cemlouis
Asked:
cemlouis
1 Solution
 
abdullah716Commented:
1. Modify your code to be a function, lets name it myFunction.
2. Modify your body tag and add the onload event to call that function.

<body onload="myFunction()" />
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now