I’ve done virtually all of my plug-in work on Windows. Under Windows, whenever one shows a WD, the html page fires a ‘window load’ or ‘document DOMContentLoaded’ event. Additionally, a ‘window unload’ event fires whenever the WD is closed.
On a Mac, from various forum posts and ThomThom’s guide, it’s my impression that the ‘window load’ and ‘document DOMContentLoaded’ events fire after one sets the html for the WD. So, on a Mac –
Do any DOM events fire when the WD is shown?
If not, can one set DOM properties immediately after the WD is shown, or is it best to do so via the block passed to WD.show?
Do any DOM events fire when the WD is closed?
if not, can one query the DOM (or call WD.execute_script) when the WD.set_on_close block is called?