How to open html file using js? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to open html file using js?

How can i access html file within js coding?.. please help me.. here is the code https://code.sololearn.com/WvTUZvV6df4u/?ref=app

21st Jun 2019, 1:40 PM
Mz.uÑpeƘfecĆ€
Mz.uÑpeƘfecĆ€ - avatar
2 Answers
+ 6
Try: location.href= “index.html”; That’s what I use for the most part anyway
21st Jun 2019, 2:01 PM
Jax
Jax - avatar
0
Thank you jax
21st Jun 2019, 3:29 PM
Mz.uÑpeƘfecĆ€
Mz.uÑpeƘfecĆ€ - avatar