Open Html page automatically when Browser opens | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Mughal
Saad Mughal - avatar
4 Respostas
+ 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 Mughal
Saad Mughal - avatar
0
OK thanks I find the option
7th May 2020, 4:03 PM
Saad Mughal
Saad Mughal - avatar