Let say I have a web page, index, and have a button can login, when I click login, the webpage become the login page,…..
Here is what the web look like:
[ Banner ]
[ Main ]
[ Footer ]
The site have 3 parts, Banner, Main and Footer. When user login, I change the main div to login, via an ajax call:
[ Banner ]
[ Login ]
[ Footer ]
It works great, but if the NON-JS environment, I need to render the whole page. What should I do the best to handle it is the most common way? Thank you.
If ‘NON-JS environment’ means disabled or not supported javascript, use NOSCRIPT tag block.
See in MDN, in MSDN