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)

+2 votes
asked Feb 11, 2021 by Michael Gentry (270 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, 2021 by Jeff The Chicken (2,870 points)
commented Feb 12, 2021 by Jeff The Chicken (2,870 points)
Just make an input variable and use the variable instead of the link shown in the example.
commented Feb 13, 2021 by Michael Gentry (270 points)
Thank you for your answer!
commented Feb 13, 2021 by Jeff The Chicken (2,870 points)
did it work for you?
commented Feb 13, 2021 by Michael Gentry (270 points)
Yes it's working wonderfully so far
commented Feb 13, 2021 by Jeff The Chicken (2,870 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.
...