Re: Name attribute not XHTML valid

Giganews Newsgroups
Subject: Re: Name attribute not XHTML valid
Posted by:  David Dorward (dorwa…@yahoo.com)
Date: Thu, 07 Apr 2005

piraticm…@gmail.com wrote:

> Hi. I have some code for a javascript jump menu...

Leaving aside the problems with the concept of a jump menu; most scripts
aren't very good.

> It validated with HTML 4.0

That was obsoleted in, IIRC, 1996 with the 4.01 bug fix release.

> I have used name atributes in my code which aparantly are not allowed
> now.

Name is for form controls and specifies stuff for server side handling. You
should be looking at the id attribute for client side stuff.

I suggest you go and readhttp://www.cs.tut.fi/~jkorpela/forms/navmenu.html
which has working code for you.

--
David Dorward      http://blog.dorward.me.uk/http://dorward.me.uk/>
                    Home is where the ~/.bashrc is

Replies

In response to

Name attribute not XHTML valid posted by piraticm…@gmail.com on 7 Apr 2005