IsBrowserDomainBlocked: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client_function}} | {{Client_function}} | ||
{{New feature/item|3.0150|1.5|| | |||
This function checks if the specified URL is blocked from being loaded. | This function checks if the specified URL is blocked from being loaded. | ||
}} | |||
==Syntax== | ==Syntax== | ||
Line 7: | Line 9: | ||
bool isBrowserDomainBlocked ( string url ) | bool isBrowserDomainBlocked ( string url ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[Element/Browser|browser]].isDomainBlocked||isBrowserDomainBlocked}} | |||
===Required arguments=== | ===Required arguments=== |
Revision as of 19:21, 7 February 2015
This function checks if the specified URL is blocked from being loaded.
Syntax
bool isBrowserDomainBlocked ( string url )
OOP Syntax Help! I don't understand this!
- Method: browser.isDomainBlocked(...)
- Counterpart: isBrowserDomainBlocked
Required arguments
- URL: A website URL
Returns
Returns true if the URL is able to be loaded, false if it is blocked.
Example
--Check the state of wiki.mtasa.com if ( isBrowserDomainBlocked ( "wiki.mtasa.com" ) ) then --If it is blocked. outputChatBox("wiki.mtasa.com is blocked and can't be loaded right now!") else --If it is not blocked. (Was accepted by the user) outputChatBox("wiki.mtasa.com is not blocked and ready to be loaded!") end
See Also
- canBrowserNavigateBack
- canBrowserNavigateForward
- createBrowser
- executeBrowserJavascript
- focusBrowser
- getBrowserProperty
- getBrowserSettings
- getBrowserSource
- getBrowserTitle
- getBrowserURL
- injectBrowserMouseDown
- injectBrowserMouseMove
- injectBrowserMouseUp
- injectBrowserMouseWheel
- isBrowserDomainBlocked
- isBrowserFocused
- isBrowserLoading
- isBrowserRenderingPaused
- loadBrowserURL
- navigateBrowserBack
- navigateBrowserForward
- reloadBrowserPage
- requestBrowserDomains
- resizeBrowser
- setBrowserAjaxHandler
- setBrowserProperty
- setBrowserRenderingPaused
- setBrowserVolume
- toggleBrowserDevTools