0

Demanding a mandatory code input from users before viewing a particular web page?

Hi everyone, I just started learning JavaScript, and I became curious when I came across "input, alerts, confirm". Can one demand a specific code input from users before having access to a webpage? If so, how do one go about writing the code?

24th Mar 2020, 10:05 AM
Chuks
1 ответ
0
The normal solution is to just create a login page but you can use prompt function also for a quick solution https://www.sololearn.com/learn/JavaScript/1149/
24th Mar 2020, 10:08 AM
Ore
Ore - avatar