In my mobile application (scheduled in JavaScript ), I have a function that is enabled when the screen orientation changes.
$( window ).on( "orientationchange", function( event ) {
...
}
I, even before this function was activated, I would like to have another function to store values and so on. Type: $( window ).before( "orientationchange",...
.
Is there any way to do this?