# Functions in frames...?

**URL:** <https://forum.kirupa.com/t/functions-in-frames/186560>\
**Category:** Uncategorized\
**Created:** [April 22, 2006, 10:57am UTC](https://forum.kirupa.com/t/functions-in-frames/186560 "2006-04-22T10:57:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PedroSa](https://avatars.discourse-cdn.com/v4/letter/p/5fc32e/32.png) [@PedroSa](https://forum.kirupa.com/u/PedroSa)\
**Post date:** [April 22, 2006, 10:57am UTC](https://forum.kirupa.com/t/functions-in-frames/186560/1 "2006-04-22T10:57:11Z")

</div>

OK, bit beginnerish at all this but got a problem here… Have got a page with three frames on it - when I click on an image in one, I want the URL in another to alter AND a function to run in the third at the same time. Am I missing something simple here because I’m darned if I can figure out how I can get an onclick to run more than one command at a time…

---

<div class="post-metadata">

**Author:** ![skOOb](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@skOOb](https://forum.kirupa.com/u/skOOb)\
**Post date:** [April 24, 2006, 8:23pm UTC](https://forum.kirupa.com/t/functions-in-frames/186560/2 "2006-04-24T20:23:47Z")

</div>

do you have an example we could look at? You could have your main page with the 3 frames on it, and then any functions you call can be on your main page. This would allow you to control the javascript calls in the other three.
