I'm using window.location.href
to load a page and now I have switched over to window.onload()
function, but the page does not load some contents.
window.location.href = $(this).val();
is the code I'm using.
How can I write it using window.onload()
function?