> onClick="parent.total.myform.textbox.value='5'"; Is "textbox" the name of the textbox in the form? If so, try this (or a variation of this): onClick="window.parent.frames['total'].myform.textbox.value='5';return true" You might just need "total" instead of "frames['total']" but I'm not sure. Then again, the problem might just be that you need the "return true" part at the end.