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)

+4 votes
asked Feb 11, 2021 by Michael Gentry (290 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

+3 votes
answered Feb 12, 2021 by Jeff The Chicken (2,920 points)
commented Feb 12, 2021 by Jeff The Chicken (2,920 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 (290 points)
Thank you for your answer!
commented Feb 13, 2021 by Jeff The Chicken (2,920 points)
did it work for you?
commented Feb 13, 2021 by Michael Gentry (290 points)
Yes it's working wonderfully so far
commented Feb 13, 2021 by Jeff The Chicken (2,920 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.
...