You are here: <base /> tag « HTML « IT news, forums, messages
<base /> tag

Posted by Mark Simon on 12/18/05 03:09

I like to use the <base> tag in, say, the contents frame of a frameset.
The idea is that the target attribute will direct all of the links into
another frame.

The base tag technically has a required href attribute, which should be
an absolute reference. I have no use for this href attribute, and it
tends to cause the relative links on the page not to work properly.
However, without it, the page won't validate properly.

Is there a valid href value I can use which will allow other relative
links on the page to work?

Below is an example:

<html>
<head>
...
<base href="?" target="mainFrame" />
</head>
<body>
...
<a href="otherpage.html">Other Page</a>
...
</body>
</html>

The only "correct" solutions I can think of are either to simply put
targets into all of my links, or to use absolute addresses ... ?

Thanks,

Mark

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация