Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

nodejs open default browser on specific web page

$ npm install opn

//////////////////////////////////////////

var opn = require('opn');

// opens the url in the default browser 
opn('http://sindresorhus.com');

// specify the app to open in 
opn('http://sindresorhus.com', {app: 'firefox'});
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to check if input file is empty in jquery 
Javascript :: javascript add day to date 
Javascript :: for char in string javascript 
Javascript :: react after deployment givin nginx 404 
Javascript :: js draw square to canvas 
Javascript :: sort js array by date 
Javascript :: xss test 
Javascript :: text to speech using javascript 
Javascript :: upload files in react using axios 
Javascript :: js appendchild wait for callback 
Javascript :: react native open email client 
Javascript :: javascript replace two spaces with one 
Javascript :: javascript get highlighted text 
Javascript :: open a new tab when clicking on a link react 
Javascript :: js urlencode 
Javascript :: nodejs delete folder recursively 
Javascript :: javascript repeat element in array 
Javascript :: react native detect production 
Javascript :: yup only characters regex validation react 
Javascript :: hwo to create an array filled with sequencial numbers 
Javascript :: javascript includes case insensitive 
Javascript :: javascript change long digit ot k,m 
Javascript :: javascript max safe integer 
Javascript :: get guild by id discord.js 
Javascript :: how to hover the mouse on an element cypress mouseover 
Javascript :: equivalent of useHistory in react 
Javascript :: how to click button programmatically in jquery 
Javascript :: js is letter 
Javascript :: conditinally add object js 
Javascript :: javascript select all table rows 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =