0

Open Html page automatically when Browser opens

I make a simple application with react I want to open this page automatically on the browser when I open my browser Is there any way I do it?

7th May 2020, 2:53 PM
Saad Saleem
Saad Saleem - avatar
4 ответов
+ 2
react runs on node server, you can navigate your browser homepage to the address where you have placed your react app.. and if you are having it on your localhost then you need to run the npm start script in that folder
7th May 2020, 3:27 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 2
browser can open a file but the js file should be included in at least in an html file to run it . and then you can put the location of that html file as the browsers homepage setting
7th May 2020, 3:58 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
Sami Khan OK what about vanilla js code
7th May 2020, 3:49 PM
Saad Saleem
Saad Saleem - avatar
0
OK thanks I find the option
7th May 2020, 4:03 PM
Saad Saleem
Saad Saleem - avatar