Skip to main content
Version: v20

On Window Opening Denied

CodeCan be called byDefinition
53Web AreaA pop-up window has been blocked
History
VersionChanges
v19 R5Triggered on drop

Description

This event is generated when the opening of a pop-up window is blocked by the Web area. 4D Web areas do not allow the opening of pop-up windows.

You can find out the blocked URL using the WA Get last filtered URL command.

This event is also triggered when a drop operation has been done in the Web area (with embedded and Wwindows system engines) if the Drag and drop option is also enabled for the area. You can accept the drop by calling:

//web area object method
If (FORM Event.code=On Window Opening Denied)
WA OPEN URL(*; "WebArea"; WA Get last filtered URL(*; "WebArea"))
// or UrlVariable:=WA Get last filtered URL(*; "WebArea")
// where UrlVariable is the URL variable associated to the web area
End if

See also

On Open External Link