How to load a new webpage using HTML, CSS or JavaScript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to load a new webpage using HTML, CSS or JavaScript?

I want to load a new webpage whenever a button is clicked, how to do it?

19th May 2020, 6:36 PM
Parthiv Pal
Parthiv Pal - avatar
5 Answers
+ 2
Or see JavaScript CSS HTML course
19th May 2020, 6:42 PM
Jason
Jason - avatar
+ 1
Do you mean new tab? If so, then write (in html file): <a href="yourlink.com" target="_blank">some text</a> The target="_blank" is the most important thing here
20th May 2020, 9:01 AM
Maciek
Maciek - avatar
0
Link the new webpage using a tag given you know how to use js or even HTML
19th May 2020, 6:49 PM
Abhay
Abhay - avatar
0
CodeShow yup, now its correct
20th May 2020, 1:48 PM
Maciek
Maciek - avatar
0
Thanks for the answer!
20th May 2020, 3:30 PM
Parthiv Pal
Parthiv Pal - avatar