jquery - Loading pdf file in child window, why does ready work but no other events -


i'm loading .pdf file in pop window. want attach event. ready event works fine, other events not. why this?

this works:

var desturl = "c:\mypdf.pdf; $(window.open(desturl)).ready(handler); 

this not:

var desturl = "c:\mypdf.pdf; $(window.open(desturl)).unload(handler); 

at first thinking cannot add jquery page pdf document, fact .ready working makes me think otherwise. none of other events work either, .ready.

it doesn't possible, @ least not cross browser. in ff using pdf.js example unload handler called, after window loads.

is possible open popup javascript , detect when user closes it? has useable answer using polling.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -