# Combining JS Function

**URL:** <https://forum.kirupa.com/t/combining-js-function/169511>\
**Category:** web dev\
**Created:** [November 16, 2005, 9:13pm UTC](https://forum.kirupa.com/t/combining-js-function/169511 "2005-11-16T21:13:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wyclef](https://avatars.discourse-cdn.com/v4/letter/w/65b543/32.png) [@wyclef](https://forum.kirupa.com/u/wyclef)\
**Post date:** [November 16, 2005, 9:13pm UTC](https://forum.kirupa.com/t/combining-js-function/169511/1 "2005-11-16T21:13:45Z")

</div>

Hey, is there a way I can call this differently so both IDs are called within 1 setFooter?

```auto

window.onload = function() {
	setFooter('footer-left');
	setFooter('footer-right');
}

```
