Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
how to include html page in other html page?
Ravindra Walde
Aug 11 2015 5:55 AM
508
Reply
Hello All,
I want to include html page in other page
foe ex. home.html and footer.html
i want to include footer.html in home.html page.
and when run home.html and (ctrl+U) view source code both page code will be
want to show.
please help me.
<head>
<link rel="import" href="Test.htm"/></head>
<body>
div id="container"></div>
<script type="text/javascript">
var link = document.querySelector('link[rel="import"]');
var template = link.import.querySelector('template');
var clone = document.importNode(template.content, true);
document.querySelector('#container').appendChild(clone);
</script>
</body>
i have tried this but not shown code in view source code.
Thanks In adavance.
Regards,
Ravi Walde
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
count folder size
how to insert user-glyphicon in img tag