Quote Originally Posted by 5TonsOfFlax View Post
What you are missing is the difference between a Function and a Function call.

Navigate is a Function. Navigate("FrameLabel1") is a function call.
Darn skippy! Wow. Good job finding the right words to make it click for me! I actually feel kind of stupid now.

Ok, so by writing Navigate, I'm not actually calling the function at the time of the addEventListener call, I'm just supplying the event listener with a reference to the name of the function. Then, when the listener is triggered, the listener will call (and pass a MouseEvent argument to) the Navigate function.

By adding parens () after Navigate (and any argument contained therein), that means the listener is actually trying to call the Navigate function at the time of the addEventListener call, which is ok, but it needs to get back a function in return...