Is there a function in html5 that acts like a jsp include?
Something like which can be added automatically to a page by using a single source.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, if you need such behavior use a server-side language such as PHP. If you cannot do this, you have to use JavaScript to “include” another page by fetching it via AJAX and then adding it to the DOM.
PHP example:
JS example using jQuery:
Do not use the JS solution like this. It will make the page unusable by anyone who does not have a JS-capable browser – search engines for example.