• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 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

htmljavascripthtml5commentssololearncodebasicscodeplaygroundself-learning
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

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Fix Rivers in 2D Terrain Map Generator
5 Votes
What Is the most complicated thing you can do
1 Votes
Hello everyone, I want to learn programming, I don't know where to start.
1 Votes
How the operators and commands in this code are executed?
1 Votes
Combination
0 Votes
Will I get the certificate for free if I completed the free course of web development (I am not on pro subscription)
0 Votes
Somebody knows how to solve the problem finance app. Even my result is like it must be, but still I can't pass it
0 Votes
I finished introduction to python
0 Votes
Whyy.
0 Votes
i am begineer
0 Votes