Can I redirect one web page to another web page using css or html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can I redirect one web page to another web page using css or html

16th Nov 2018, 7:24 AM
Avadesh Pandey
Avadesh Pandey - avatar
9 Answers
0
JavaScript was used to control the behaviour of webpage so you may either use JS or otherwise there's an automatic redirect using meta refresh. 😉
16th Nov 2018, 8:15 AM
Zephyr Koo
Zephyr Koo - avatar
0
You can using a href Or window.location = url In javascript Css are made for design purpose so i dont think there is any
16th Nov 2018, 7:26 AM
Taste
Taste - avatar
0
Clicking anywhere on a webpage should redirect it to another page
16th Nov 2018, 7:28 AM
Avadesh Pandey
Avadesh Pandey - avatar
0
Thats bad design but create an almost invisible overlay element that cover the whole page Add onclick listerner with js i provided above
16th Nov 2018, 7:30 AM
Taste
Taste - avatar
0
Ok I will try
16th Nov 2018, 7:32 AM
Avadesh Pandey
Avadesh Pandey - avatar
0
The link should work like pop up to redirect from page to page
16th Nov 2018, 7:35 AM
Avadesh Pandey
Avadesh Pandey - avatar
0
Can you tell something about meta refresh
16th Nov 2018, 10:42 AM
Avadesh Pandey
Avadesh Pandey - avatar
0
Avadesh Pandey Basically the tag was placed in header and the redirection will occur once the page was loaded or after a specific amount of time. Since this happens automatically without user action and visual indicator, it's feasible only when require support without JavaScript. You may find more information on web and here's one. 😉 https://www.lifewire.com/meta-refresh-tag-3469046
16th Nov 2018, 12:50 PM
Zephyr Koo
Zephyr Koo - avatar
0
Ok thank you
16th Nov 2018, 2:07 PM
Avadesh Pandey
Avadesh Pandey - avatar