Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

How can I let users type in a URL and go to a different website? (HTML/JS/CSS)

+1 vote
asked Feb 11 by Michael Gentry (260 points)

I am a beginner writing a program in HTML/JS/CSS, and I was wondering how I could let users type in a URL and go to a different website from my page?

1 Answer

+1 vote
answered Feb 12 by Jeff The Chicken (2,860 points)
commented Feb 12 by Jeff The Chicken (2,860 points)
Just make an input variable and use the variable instead of the link shown in the example.
commented Feb 13 by Michael Gentry (260 points)
Thank you for your answer!
commented Feb 13 by Jeff The Chicken (2,860 points)
did it work for you?
commented Feb 13 by Michael Gentry (260 points)
Yes it's working wonderfully so far
commented Feb 13 by Jeff The Chicken (2,860 points)
Great! Glad to help.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...