Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

popups from iframe

Status
Not open for further replies.

kimgokce

Programmer
Joined
Jan 5, 2001
Messages
4
Location
US
I have a page that is fed into an iframe. The iframe is on a remote site out of my control. The iframe contents I have on my host need to contain a search dialog. I have implemented this using a form with an action="mySearchEngineUrlGoesHere"

Whether I use a "submit" input type, a document.open, or an onMouseClick, or an onUnFocus, etc., I can not seem break out of the iframe to open the search results in a new browser.

If anyone has run into this before or could suggest a workaround approach, I would greatly appreciate it!
 
For those green ones like me that follow ...

Here's a solution I found elsewhere:

1. Insert a script as follows:

<script language=&quot;javascript&quot;>
function popWin() {
FormResults=window.open(&quot;&quot;,&quot;FormResults&quot;,&quot;&quot;);
}
</script>

2. Insert the calling tag on the form (I used an image):

<input type=image src=&quot;whatever.gif&quot; name=&quot;click to search&quot; onclick=&quot;popWin()&quot;>

Works flawlessly in IE 4.x and Netscape 4.x.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top