problem with button openning url into same window
Posted on 2005-03-29
I am actually a bit embarassed to ask this one as I know I have done this before, but I need to fix it quickly.
I have a framed site. I want to be able to click on a button and load the url into the same frame, but it isn't, it is opening into a new frame. The mainFrame, is where the button exists and I simply need the file to load into the same frame.
Here is what I have
<input name="Submit" type="submit" onClick="MM_goToURL('parent','addperson.php');return document.MM_returnValue" value="test">
Could you please tell me where to specify the target as mainFrame, or a cleaner approach using a button to open the url into a particular frame.