PDA

View Full Version : Question about window names


andersonwd
7-27-02, 06:13 PM
I am working on a site map and need have the site map open in a new window. How do I get the link from the map to open in the original window? I can't figure it out and have tried several different target names, none of which are working. My guess is that I have to somehow assign a name attribute to the window when my visitor enters the site, but I can't seem to figure out how to do that. I'm puzzled and wondered if any of y'all could help me out on this one. :)

Thanks!
Sherry

alphadesk
7-27-02, 07:07 PM
Sherry,

Try adding target="_new" to the end of you link tag.

<a href="http://www.yourdomain.com/link.html" target="_new">

andersonwd
7-27-02, 07:49 PM
That didn't work either. I'm not sure that I stated my question clearly enough. The site map is in a pop up window. That is working. What I need to do is have the links in the pop up window target to the original window where the main site is still displayed. How do I do that?

Here is the site that I'm working on...
http://www.andersonwebdesign.com/sailairtravel/home.php

Once I get this one little thing to work properly, then I'm done! It's always something. :)

Thanks again.

Sherry

hammondhill
7-27-02, 07:55 PM
Try this:

<A HREF="http://yourdomain.com/page_that_you_want_to_link_to.html">
Link Description</A>

Hope this helps!!

Zachery

andersonwd
7-27-02, 08:07 PM
That would just open the new link into my popup window. I'm not an idiot, but thanks for your help anyway.

BerksWebGuy
7-28-02, 02:18 AM
You would need a script...or Javascript...that would do this for you. I know they exist, you just have to find the right one for you.

I don't think you can do it with just simple HTML.

Good Luck:)

andersonwd
7-28-02, 10:41 AM
Thanks for the responses. I think I've solved the problem as best as I can with just HTML by adding a base target in the <head> of the entry page. That seems to be working the way I wanted. I hope. :)

Thanks again everyone.