Jump to content

Recommended Posts

Posted

Hello,

 

My home page has the links to the rest of the pages on the website (of course).

I open one of the links...

For example,

At the Home page, open Gallery link..

(Gallery opens up in new window)..

On the Gallery page, open Camera Accessories link,

(Camera Accessories page opens up in the same window as the Gallery

page even though I have the HTML target="new"> at the end of the <a href> line.

For example:

<a href="http://www.queenpictoria.com/CP/CP1.html" target="new">

 

I would like to have each page link I've coded with target="new"> to open in a new window. I don't know if I ask too much.

 

Does it have to do with each individual computer and how much RAM it has?

How many levels of pages going into a website can have links open into new windows?

 

I hope I have made sense.

 

:)

Posted
Try

<a href="http://www.queenpictoria.com/CP/CP1.html"'>http://www.queenpictoria.com/CP/CP1.html"'>http://www.queenpictoria.com/CP/CP1.html" target="_blank">Camera Accessories</a>

 

Hey Don!

 

Where the words "Camera Accessories" are in your code, how does that work?

The words "Camera Accessories" are just a text link name I put on the webpage.

So I use the exact words of the name I have given the text link on the page?

---------------------

This is how the whole link looks:

 

<a href="http://www.queenpictoria.com/CP/CP1.html" target="new">

 

<font face="Arial Black" size="1" color="red"><div align="center">CAMERAS ACCESSORIES</font></a></div></td>

---------------------

This code seems to work ok on the Home Page.

Is there a better way? Should I mention the text link twice?

For example:

 

<a href="http://www.queenpictoria.com/CP/CP1.html" target="_blank">Camera Accessories<font face="Arial Black" size="1" color="red"><div align="center">CAMERAS ACCESSORIES</font></a></td>

------------------------

Looks fishy....the <font> tag needs to be infront of the text link.

Oh Boy... I've made a mess of it. I want to run away and hide.... :)

 

I know that the links opening up in new windows for my website is inconsistent right now.

Evidently, it is reasonable to expect the links to open up in new windows

regardless of the level of pages one goes into in a website.

 

Evidently I have incorrect code form.

Back to the drawing board. :lol:

 

Thanks.

Posted

It looks to me like you almost have it sorted out. You shouldn't have a <div> tag inside of an <a> tag though - I'd suggest re-arranging the tags like this:

><td><div align="center"><a href="http://www.queenpictoria.com/CP/CP1.html" target="_blank">
<font face="Arial" size="1" color="#ffff00">CAMERAS<br>ACCESSORIES</font></a></div></td>

Posted
It looks to me like you almost have it sorted out.  You shouldn't have a <div> tag inside of an <a> tag though - I'd suggest re-arranging the tags like this:

><td><div align="center"><a href="http://www.queenpictoria.com/CP/CP1.html" target="_blank">
<font face="Arial" size="1" color="#ffff00">CAMERAS<br>ACCESSORIES</font></a></div></td>

 

That makes sense. My observation skills are getting better.

Thanks for the help.

 

I'll use this code and let you know how it works.

 

By the way....I don't mean to drag this topic out,

but I am wondering what the difference is between

 

<..target="new">

and

<..target=_blank">

?????

 

Several times I have been told to use the former,

but it appears to work only on the home page.

Anything I ought to know?

Posted

I have not seen the "new" target

 

from w3.org

 

The following target names are reserved and have special meanings.

 

_blank

The user agent should load the designated document in a new, unnamed window.

 

_self

The user agent should load the document in the same frame as the element that refers to this target.

 

_parent

The user agent should load the document into the immediate FRAMESET parent of the current frame. This value is equivalent to _self if the current frame has no parent.

 

_top

The user agent should load the document into the full, original window (thus canceling all other frames). This value is equivalent to _self if the current frame has no parent.

 

However most of your visitors will not like pages on your site opening in a new window.

After clicking several links, I will have serverl browsers windows open.

Posted
I have not seen the "new" target

 

from w3.org

However most of your visitors will not like pages on your site opening in  a new window.

After clicking several links, I will have serverl browsers windows open.

 

I understand. I need to strike a balance so the viewers don't lose the site by closing a window. It is hopefully more friendly to have a new window than it is when I click on a site and it won't let me leave them. I have to shut down the page and start over. New windows could be a crunch for those with small amounts of memory.

 

This is important to me because I need to get the code down, and keep the viewer's ease in mind.

 

Thanks for your reply.

Posted

I understand linking to other sites in a new window,

but some of your own pages open in new windows

which is not good.

And the new windows have the same menu at the top

so a new window is not needed.

Posted
By the way....I don't mean to drag this topic out,

but I am wondering what the difference is between

 

<..target="new">

and

<..target=_blank">

?????

 

Several times I have been told to use the former,

but it appears to work only on the home page.

Anything I ought to know?

The first one (target="new") causes links to be opened in a window named "new". If there currently is no open window named "new", the window is created. Subsequently clicking on links with target="new" causes them to be opened in that window.

 

The second one (target="_blank") cause links to always be opened in a new window. Note that this is not the same as opening links in a window named "new".

Posted
I understand linking to other sites in a new window,

but some of your own pages open in new windows

which is not good.

And the new windows have the same menu at the top

so a new window is not needed.

 

but some of your own pages open in new windows

which is not good.

 

This causes me to think. Is your call on this because it demonstrates excess?

Sometimes when I am on a site, I have trouble getting back to the home page.

Maybe I am overdoing it. Hmmmm...

 

Thanks for looking for me. :flex:

Posted
The first one (target="new") causes links to be opened in a window named "new".  If there currently is no open window named "new", the window is created.  Subsequently clicking on links with target="new" causes them to be opened in that window.

 

The second one (target="_blank") cause links to always be opened in a new window.  Note that this is not the same as opening links in a window named "new".

 

OOOhhhh. Now I know why the link opens in an already existing open window.

Thank you so much.

:flex:

Posted

In regards to excessive new windows, personally I'd prefer the option to click on a link -- any link and select if I want a new window myself.

 

A new window opening for me automatically is highly irritating, as I may be working on something else. I'm sure that a lot of people feel the same way. :flex:

Posted
This causes me to think.  Is your call on this because it demonstrates excess?

Sometimes when I am on a site, I have trouble getting back to the home page.

Maybe I am overdoing it. Hmmmm...

 

Thanks for looking for me.   :D

When your pages all have the same menu at the top of the page

there is no need to open each link in a new window.

 

After clicking 4 links I find four browser windows open

and all with the same menu at the top

very annoying and confusing to me.

 

Just my opinion. :)

Posted
In regards to excessive new windows, personally I'd prefer the option to click on a link -- any link and select if I want a new window myself.

 

A new window opening for me automatically is highly irritating, as I may be working on something else. I'm sure that a lot of people feel the same way.  :D

 

Marie,

 

What does the link look like in order to give you the option to open it in a new window?

I know I can right click and the drop-down window gives that option, but some don't know about that, and others may not want to right click.

 

My aim is to have my website be a pleasant experience.

 

Thanks for the reply.

Posted
When your pages all have the same menu at the top of the page

there is no need to open each link in a new window.

 

After clicking 4 links I find four browser windows open

and all with the same menu at the top

very annoying and confusing to me.

 

Just my opinion. :D

 

Don,

Your view is valuable to me.

Thanks.

Posted

April,

 

I agree with Don. The answer to your problem is good site design with easy-to-understand nagivation. The best answer in this situation is not to have links open in new windows, especially when they are links within your site. If you design your site well, users will always be able to navigate through your site easily.

 

On my sites, the main logo almost always is a link back to the home page. And that is in addition to navigation that specifically says "home page" or something similar.

 

Best wishes for a happy fourth of July!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...