Button input linked to parent frameset?

Hi guys,

Hopefully you can help me out… here’s the problem
Our application is sitting in a frame. On one of our pages, we have two additional frames.

In very basic terms it looks like this.

<iframe id=“1”>

<iframe id=“2”>

[INDENT][INDENT]&lt;iframe id="3"&gt;&lt;/iframe&gt;[/INDENT][/INDENT]



I’ve just came across a problem where any links in frame 3 where being directed to the 'top.location.href ’ (using javascript), so it didnt sit inside frame 1. I managed to find a solution by changing that line to parent.parent.location.href.

Now i’ve just noticed that theres a few buttons inside frame 2 that are doing the same thing. What i need to do is direct them to the parent.location.

Frame 2 has been written completely different and to be honest its a bit over my head (i just about managed to fumble through the first problem), so my logic may be off for this next bit…

I have this button

<input id=“Button3” type=“button” value=“Save Proximity Search” onclick=“javascript:saveProximitySearch_Local();” />

As far as i can see, the onclick is writing out the url. Unlike before theres no ‘top.location.href’ line to change in the javascript, so i was thinking is it possible to write something like this?

<input id=“Button3” type=“button” value=“Save Proximity Search” onclick=“parent.location.href=javascript:saveProximitySearch_Local();”" />

Or is there a better way to do this?
Any suggestions greatly appreciated :slight_smile: