All functions   Mac OS X   Windows   Crossplatform   Components   New in version: 1.0   1.1   1.2   1.3   1.4   1.5   1.6   1.7   1.8   2.0  

SetDefaultHandlerForURLScheme

Component: URLSchema
Mac OS X: Works
Windows: Does nothing

MBS( "SetDefaultHandlerForURLScheme"; schema )

Parameters

Parameter Description Example value
schema The schema name. "http", "https", "mailto" or something else

Result

Returns OK or an error message on failure.

Description

Sets the user's preferred handler for the specified URL scheme to point to the current application.
It's probably best to ask the user's permission before changing their default browser!

Examples

MBS("SetDefaultHandlerForURLScheme"; "mailto")

Feedback: Report problem or ask question.