dynamic change of header and footer of a internet explorer page

B

bush

hi budies! i have an assignment....how to change the header and footer
of an internet explorer dynamically using java script.if any one of u
have any idea about it plz guide me.
 
E

Erwin Moller

bush schreef:
hi budies! i have an assignment....how to change the header and footer
of an internet explorer dynamically using java script.if any one of u
have any idea about it plz guide me.

Hi,

1) Place them both in a div. Name then eg 'headerdiv' and 'footerdiv'.
2) Get the div via commands like:
var myHeader = document.getElementById('headerdiv');
3) and then change the innerHTML of that div.
eg:
myHeader.innerHTML = 'new header';

Erwin Moller
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,278
Latest member
BuzzDefenderpro

Latest Threads

Top