How to add an onload
function to an opened window? (target is "self", not window.open
, just a regular link)
Is it possible with onbeforeunload
or something? Or add onclick
to the "normal link"?
I mean like this:
<a href="page2.htm" onclick="theWindowIHaveOpened.onload = function(){alert('loaded')}">...
Why would you need to add an onload function after the page has loaded? It wouldn’t do anything.
– jimyi26 июля 2009, 19:15