theme change
Application Type
Traditional Web

Dear All,

To change the color of the webpage to black and white, i am using a java script "document.body.classList.add('gray-scale')" 

I am developing in OS11 traditional web.

Whenever we click the theme changing button, the page turned into back and white theme. But if we scroll the page, the footer also scrolls up.

Kindly help.

Thanks & Regards,



Hi Madhavan,

I would like to suggest reading this article on how to do dynamic theme changes to your application:



Dear Daniel,

Thanks for your reply. I have modified the code and its working fine now.

I have added the code separately for header, body and footer as below:

Thanks & Regards,


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.