By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,377 Members | 1,655 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,377 IT Pros & Developers. It's quick & easy.

dynamic change of header and footer of a internet explorer page

P: n/a
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.
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.