How to make an interactive navigation that will unlock ex. lesson 2 if done with lesson 1? It's like creating progress. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to make an interactive navigation that will unlock ex. lesson 2 if done with lesson 1? It's like creating progress.

5th Jun 2017, 5:30 AM
CJ Avila
CJ Avila - avatar
3 Answers
+ 1
if (!finish = true) { continue lesson } else { unlock next lesson }
5th Jun 2017, 7:15 AM
Elias Papachristos
Elias Papachristos - avatar
+ 1
- of course you can. - you insert it in <script> </script> tags - you can link it directly (so when the user click on it to be transferred to your link) or try a "target:_blank" to open in a new window.
5th Jun 2017, 7:29 AM
Elias Papachristos
Elias Papachristos - avatar
0
Thank u for the reply, is this possible also if link to another html? how to insert it in javascript? Assuming my next lesson is another html. My concept like creating an interactive learning just like this app.
5th Jun 2017, 7:19 AM
CJ Avila
CJ Avila - avatar