Web Browser

Web Browser

Open URLs on the client's workstation with their default web browser

Opening a URL in the client’s default web browser is a common task in web development. You can do this with the browser resource.

# Launch the client's default web browser and open the URL
context.browser.launch "https://terminalwire.com"

Security

By default, the browser resource can only launch http and https URLs. This is to prevent malicious code from opening other types of URLs, like file, that could harm the client’s workstation.