electron-open-link-in-browser
v1.0.2
Published
Open a link in browser for Electron and browser.
Downloads
173
Readme
electron-open-link-in-browser
Open a link in browser for Electron and browser.
Electron app to browser
browser to browser
Install
$ npm install --save electron-open-link-in-browser
Usage
<script type="text/javascript" src="build/electron-open-link-in-browser.js"></script>
<a
href="https://github.com/lyrictenor/electron-triage-for-github"
onClick="electronOpenLinkInBrowser();"
>
github.com/lyrictenor/electron-triage-for-github
</a>
<button
type="button"
onclick="electronOpenLinkInBrowser('http://example.com');"
>
Example.com
</button>
React.js + JSX + Browserify/Webpack
var electronOpenLinkInBrowser = require("electron-open-link-in-browser");
<a
href="https://github.com/lyrictenor/electron-triage-for-github"
onClick={electronOpenLinkInBrowser.bind(this)}
>
github.com/lyrictenor/electron-triage-for-github
</a>
<button
type="button"
onClick={electronOpenLinkInBrowser.bind(this, "http://example.com")}
>
Example.com
</button>
API
electronOpenLinkInBrowser([url,] event)
Jump to the href property.
url
Optional
Type: string
Jump to url.
Changelog
License
MIT © sanemat