OnClientBrowserResourceBlocked: Difference between revisions
Jump to navigation
Jump to search
ThePiotrek (talk | contribs) mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client_event}} | {{Client_event}} | ||
{{Needs_Example}} | |||
{{New feature/item|3.0150|1.5|| | {{New feature/item|3.0150|1.5|| | ||
This event is executed when a resource (images, sounds etc.) has been blocked. | This event is executed when a resource (images, sounds etc.) has been blocked. | ||
Line 9: | Line 10: | ||
string url, string domain, int reason | string url, string domain, int reason | ||
</syntaxhighlight> | </syntaxhighlight> | ||
*'''url''': | *'''url''': the blocked URL. | ||
*'''domain''': | *'''domain''': the blocked domain (part of the URL). | ||
*'''reason''': | *'''reason''': the reason why the resource was blocked. Possibles values: | ||
** 0: not allowed yet | ** '''0''': not allowed yet | ||
** 1: blacklisted | ** '''1''': blacklisted | ||
** 2: blocked protocol scheme | ** '''2''': blocked protocol scheme | ||
==Source== | ==Source== | ||
The [[Element/Browser|browser]] element | The [[Element/Browser|browser]] element. | ||
==Example== | |||
<syntaxhighlight lang="lua"> | |||
TODO | |||
</syntaxhighlight> | |||
[[pl:onClientBrowserResourceBlocked]] | [[pl:onClientBrowserResourceBlocked]] |
Revision as of 22:23, 2 April 2018
Script Example Missing Event OnClientBrowserResourceBlocked needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
This event is executed when a resource (images, sounds etc.) has been blocked.
Parameters
string url, string domain, int reason
- url: the blocked URL.
- domain: the blocked domain (part of the URL).
- reason: the reason why the resource was blocked. Possibles values:
- 0: not allowed yet
- 1: blacklisted
- 2: blocked protocol scheme
Source
The browser element.
Example
TODO
See Also
- onClientBrowserCreated
- onClientBrowserCursorChange
- onClientBrowserDocumentReady
- onClientBrowserInputFocusChanged
- onClientBrowserLoadingFailed
- onClientBrowserLoadingStart
- onClientBrowserNavigate
- onClientBrowserPopup
- onClientBrowserResourceBlocked
- onClientBrowserTooltip
- onClientBrowserWhitelistChange