Is there a way to maintain a part of the page and move it to another page?

Asked 2 years ago, Updated 2 years ago, 118 views

Create a menu where you can select the font-size of all sites in the header part of the site.
[S][M] Separate by [L] and press each to change the font-size of the site.
And keep the font-size selected when you go to another page.

I was able to change the single page css on jQuery, but if I click on another page, the font-size will be reset. Is there any good way?

javascript php html jquery css

2022-09-30 21:26

1 Answers

If you click the Change character size button, why don't you have sessionStorage name for each character size?
If you have a name in sessionStorage when loading the screen, you can change the character size if it is in the same domain

Save data to the Cookie WebStorage browser


2022-09-30 21:26

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.