If I have a page which gets generated using PHP and then modified using JS which runs using:
window.onload=myFunction;
Then the user sees the origi
OK I found this little nugget of jquery which works a treat:
$(document).ready(function() { //Call your function here });