Instance Method

canLoad

Dispatches a canLoad message to the browser window tab.

Declaration

void canLoad(in BeforeLoadEvent event, in any message);

Parameters

event

The before-load event you are responding to.

message

The body of the message. Optional.

Discussion

Use this method to set up an observer for before-load events and call this method from the observer. Then use the return value to respond to the before-load event, permitting or blocking the resource from being loaded.

This message is sent synchronously, unlike all other messages.

See Also

Sending Messages

dispatchMessage

Dispatches a message to the browser window tab.

setContextMenuEventUserInfo

Sets the user info to the appropriate context information.