Hey all i am having some trouble trying to get my code to work. I am in need of clicking a button that's inside an iframe page. Here's how its layed out:

Main.asp
|-iframe1(TabFrame) (page1.asp)
|-iframe2(AnotherFrame) (page2.asp)

The main.asp have the javascript that calls the click for the iframe button:
Code:
onMouseDown="window.frames.TabFrame.document.getElementById('buttonDown').click();"
I don't have an error when clicking but it never does what it suppose to do...

This is the button code inside the iframe:
Code:
<input type="button" name="buttonDown" value="buttonDown" id="buttonDown" onMouseDown="Scroll('MainDivBox',10);" onMouseUp="clearTimeout(stopit);" style="visibility:hidden">
Any help would be great

David