2つのhtmlページがあります。最初のページはログインページで、2番目のページはログイン時にメインページにリダイレクトします。ログイン後にページを最初にロードしたときにのみ、このメソッドを呼び出す必要があります。リロードまたはリフレッシュすると、このメソッドが再度呼び出されます。
1- can i refresh the page without calling the onload method? if yes how?
また
2- can i redirect to a specific method in the page to avoid calling the onload method every time? if yes how
また
3- can i write any thing in the onload method that keep me calling the method only at the first time? if yes how
注: Webアプリケーションでは、ページをリロードするたびにload関数を呼び出す必要があることを知っていますが、この問題を解決するために実行する必要のある解決策はありますか?