To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.admin.generalOpen lugnet.admin.general in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Administrative / General / 9854
9853  |  9855
Subject: 
Re: Attributes of the IMG tag used in displaying the LUGNET logo
Newsgroups: 
lugnet.admin.general, lugnet.publish.html
Date: 
Tue, 18 Dec 2001 16:23:31 GMT
Viewed: 
2267 times
  
You would be right about using the target= attribute as a backup if I was
writing to the Transitional DTDs or against the loose URIs. Deprecated means I
can't use the target= attribute in an XML document that validates against the
DTDs for HTML 4.01 and XHTML 1.0 Strict. What I am looking for, if window.open
behaves like target="_blank", is the JavaScript command that behaves like
target="_top" to implement what the admins want for the display of their
buttons and banners while still validating against the Strict DTDs. The
deprecation of the target= attribute is a deliberate choice to separate the
HTML markup from page behavior that affects the user agent.

Constantine Hannaher

In lugnet.admin.general, William R. Ward writes:
"Dan Boger" <dan@peeron.com> writes:

In lugnet.admin.general (and 1 other group), Constantine Hannaher wrote:
As far as the markup for including the LUGNET buttons and banners on a
web page is concerned, the target= attribute of the <a> tag is
deprecated in HTML 4.01 and XHTML 1.0. While I explore how to replace
the exact functionality of the target="_top" attribute, I will make do
with a JavaScript event handler to open LUGNET in a new page:

<a href="http://www.lugnet.com/"
onclick="window.open('http://www.lugnet.com/');return false">

but that will only work if the client supports java - if java is
unavailable (for whatever reason), the button will act as a normal link.
Why not put the target tag as a backup for the java?

JavaScript, not Java.  A completely separate and unrelated language.

Note that target="_top" is for frames, to load the page in the
outermost frame (i.e. the whole window).  For a new window, the
correct value is target="_blank".  If you are not in a frame, it will
I believe create a new window.

Deprecated or no, putting in a target attribute is the best way to
implement this functionality, at least for the present time.

--Bill.



Message has 1 Reply:
  Re: Attributes of the IMG tag used in displaying the LUGNET logo
 
(...) <rant> My only thought on this whole thing is why is the world seeming to force everyone to use scripted web pages? What on earth is wrong with just plain HTML? I often prefer to run with scripting disabled either because it is so buggy on (...) (23 years ago, 18-Dec-01, to lugnet.publish.html)

Message is in Reply To:
  Re: Attributes of the IMG tag used in displaying the LUGNET logo
 
(...) JavaScript, not Java. A completely separate and unrelated language. Note that target="_top" is for frames, to load the page in the outermost frame (i.e. the whole window). For a new window, the correct value is target="_blank". If you are not (...) (23 years ago, 18-Dec-01, to lugnet.admin.general, lugnet.publish.html)

12 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR