1 year ago

#77572

test-img

alexyb

Stay in the same tab after page reload

I have created a webpage consists of tabs by following this tutorial https://www.w3schools.com/howto/howto_js_tabs.asp

In one of the tabs i have a form to be submitted, once pressing the submit button, the page reloads.

My question is, how do i stay on the same tab that contains the form after page reload. (or is it actually not so appropriate to use the tutorial for complicated contents to begin with?)

Ps: the default opened tab is different from the tab with the form

Any help will be appreciated, thanks in advance!

javascript

html

css

0 Answers

Your Answer

Accepted video resources