I have an .html file (X) that depending on some value should immediately open another .html file (Y) when opening the .html file (X). What's the best way to implement this within javascript?
Also I want that when the user presses 'Refresh (F5)' on Y .html the page that should be loaded again to be the one that started the current one (X).