Prepare one javascript
function. Write your html elements
through javascript
or jquery
function. run it in page load event
. and call the function in html by div
.
Put this javascript function
in separate .js
file. And call this js
file in wherever you want. And just place the div
wherever you want in the html
page.
See this jsfiddle DEMO
I Hope this demo will useful to you in this situation.