How to call a javascript function while openning or exit an IE publication ?
I have tried function OnPubLoaded, It dose not work.
function OnPubLoaded: Boolean;
begin
// When the publication is starting.
// Set Result to True if you want to exit immediately without any warning.
ExecuteHTMLScript(“Say(‘123’)”,“JavaScript”);
Result := false;
end;
Niether procedure OnPubBeingClosed
procedure OnPubBeingClosed;
begin
// When the publication is going to be closed.
ExecuteHTMLScript(“Say(‘123’)”,“JavaScript”);
end;