problem with button openning url into same window

Posted on 2005-03-29
Medium Priority
Last Modified: 2010-04-25
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.

Thank you.
Question by:debbieau1
LVL 56

Accepted Solution

Ryan Chong earned 1000 total points
ID: 13658691
for a quick guess, try:

<input name="Submit" type="submit" onClick="MM_goToURL('self','addperson.php');return document.MM_returnValue" value="test">


<input name="Submit" type="submit" onClick="MM_goToURL('mainFrame','addperson.php');return document.MM_returnValue" value="test">

if it's not working, try post the function MM_goToURL here.


Author Comment

ID: 13658712

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
There may be issues when you are trying to access Outlook or send & receive emails or due to Outlook crash which leads to corrupt or damaged PST file. To eliminate the corruption from your PST file, you need to repair the corrupt Outlook PST file. U…
Watch the video to learn how one can deal with PST file corruption issue with an outstanding Kernel for Outlook PST Repair Tool easily. Using this tool, non-technical users can swiftly perform the repair process to restore their essential data witho…
Suggested Courses

599 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question