Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Does anyone know how to do this?

Links open in a frame like Hotmail does...

8:25 pm on Oct 5, 2001 (gmt 0)

Full Member

10+ Year Member

joined:July 8, 2001
votes: 0

I have a search form that uses anaconda director to take the input and spit out the results on Google. (Just like any other form)

So far so good... Instead of going to the search results page, i would like to have a small frame at the top of that page that says "back to my page"..... How would i do this? I have several cgi scripts that do this, but they require me to put the url of the frame script before each URL. This is kinda hard since its a form and the URLs are all different depending on what the person searches for...

Basically, you know how Hotmail puts their little frame at the top of pages when click on an exterior link from your inbox. I need that, except i need to do it for search results from a form on my site.

Sounds complicated, but seems simple !!!

3:15 am on Oct 6, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
votes: 0

A frame can be addressed by its window's name, the name which is declared in the original frameset document <frame name="foo" src=document.html>. Even if you intially fill that frame/window with search results, you can make a link in another frame that fill's it with any other document. Just use target="foo" for the link.

Is there more of a requirement here that I'm not picking up on?

4:04 am on Oct 9, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 4, 2001
votes: 14

You can do it with Javascript...

Javascript can dynamically write anything you want into a window.

For instance:

<script language="JavaScript">
var variableOfniftyness;
function createWin() {
variableOfniftyness = window.open('','IHaveAName','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,' + 'width=400' + ',height=100');
text = '<html><head></head><body>';
text += '<p align="center">Getting the idea?</p>';
text += '</body></html>';
return false;