i have 2 html page the first one is the login page and the second, when i login i redirect to the main page, there is a must must execute on load, only at the first load of the page after login this method must call. when i reload or refresh this method is call again.
1- can i refresh the page without calling the onload method? if yes how?
or
2- can i redirect to a specific method in the page to avoid calling the onload method every time? if yes how
or
3- can i write any thing in the onload method that keep me calling the method only at the first time? if yes how
Note: i know that in web application it is must call load function at each time the page reload, but is there any solution that i must do to solve this problem?