Conver this to javascript?

shibby4555 (3)
Hi, sorry if this isn't quite a relevent post. But I'm trying to learn a little bit of Javascript, and I know basic C++
So what I am trying to do is make a bit of an interactive web page. So you type in the page you want to view.
So I'll have a bunch of links on my page like:
Home
Links
Contact
Etc...
And then something like
Enter the page you want to view:

So in C++ it'd be something like
1
2
3
4
5
6
char page;
cout<<"Enter your page: ";
cin>>page;
if (page=='home')
open :"mywebsite.com/home";
etc...


Something like that.
Thanks for help.
Registered users can post here. Sign in or register to post.