How to Link One html File across various pages with javascript
One of the rules that a programmer must follow is to always avoid repetition as much as possible to simplify the coding process, you can either make it a variable or make it a file and link it across various files.
This tutorial will be covering how to make it a file and link it across various Documents.
Save the particular part of the page that you wont like to repeat in a text document e.g repeat.html
On the page where you want it to appear, create a
tag exactly where you wanted it to appear with an ID which you can give any value of your choice.Inside the div use the following javascript codes
$("#repeat").load('repeat.html');
Then you have successfully implented this tutorial.
https://steemit.com/photography/@emran1017/37k5pg-oraddora-photography
Congratulations @mrwaccaff! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Do not miss the last post from @steemitboard:
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Congratulations @mrwaccaff! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Do not miss the last post from @steemitboard:
Vote for @Steemitboard as a witness to get one more award and increased upvotes!