I need to call GetAllProperties() function during page loading instead of calling the GetAllProperties() function after page is fully loaded. My code l
GetAllProperties()
If you want to call javascript function while page load than you should try following function :
window.onload = function() { GetAllProperties(); };