The window object in JavaScript has an event handler called onload . When this event handler is used, the entire page and all of its related files and components are loaded before the function listed in the onload event handler is executed, hence the term "on load."
Questions tagged [window.onunload]
77 questions
0
votes
1 answer
submit form into new window > displays pdf > parent loses child window reference
I have the following code onClick of a button
$('#someForm').attr("target", "formresult");
.......
winPop = window.open("", 'formresult', 'allthesettingshereblablah');
.......
$('#someForm').submit();
everything works and a new pdf is displayed…

Khan
- 33
- 1
- 3
0
votes
2 answers
Closing popup window via X button and onload window event
There are any number of questions on this topic out there, but I have not seen my situation addressed so I will describe my scenario.
I have a popup window. There are 2 ways you can close it: pressing a close button within the popup window or by…

demongolem
- 9,474
- 36
- 90
- 105
0
votes
1 answer
select.onchange in window.onload (JavaScript)
Why this code does not work? I tried to add a listener to event select.onchange in window.onload code.