Should the dropdown menu not close after you select a Link? Here is the example:
In the background is the homepage with the dropdown from "mehrere" (more stuff). When one selects a link, e.g. "Inns and Restaurants" it opens up a new window correctly. When you close the "Inns and Restauarants" window (and are returned to the Homepage) the dropdown is still open. You have to click the homepage somewhere to close the dropdown. Is there a way to have it "self-close"? I thought this might have something to do with "self-closing" tags but can't find the answer.
Here is the html:
<li><a href="index_deutsch.htm" target="_self" >Mehrere</a>
<ul>
<li><br /><a href="HOMEPAGE_more_stuff/wineries.htm" target="_blank">Wineries</a><br /></li>
<li><a href="HOMEPAGE_more_stuff/inns_restaurants.htm" target="_blank">Inns and Restaurants</a><br /></li>
<li><a href="HOMEPAGE_more_stuff/art.htm" target="_blank">Art</a><br /></li>
<li><a href="HOMEPAGE_more_stuff/books.htm" target="_blank">Books</a><br /></li>
<li><a href="HOMEPAGE_more_stuff/letters_muensenberger.htm" target="_blank">The Civil War Letters of Corporal Adam Muenzenberger</a><br /></li>
</ul>
</li>
Thanks for your help.
Jim
Web sites don't typically open page links in new browser windows/tabs as this is not web friendly and it takes up browser resources.
If people wish to open links in new windows/tabs, they can do this themselves with right click or by selecting this option in their browser preferences.
The rule of thumb on the web is never mess with people's browsers.
Also, Target="_blank" is deprecated code. It won't validate.
Nancy O.
Using 'target="_self"' is an usage antique relevant only to the use of frames (including iframes). Using 'target="_blank"' (which is perfectly valid in HTML 4.01 or HTML5, but not XHTML) will cause each click to open the page in a new window or tab, depending on how your local browser is configured. Neither would have any impact on the problem at hand.
See my demo below. Clicking either link maintains focus on return.
http://www.alt-web.com/sandbox/HTML5Layout.html
Nancy O.
North America
Europe, Middle East and Africa
Asia Pacific