[thelist] Javascript submit()

Paul Backhouse paul.backhouse at 2cs.com
Wed Oct 10 11:16:10 CDT 2001


what sort of problem do you get when using the "#" - i have never come
across any problems?
its cool - i value any help - im self taught and only been in this game for
2 years, i used to do technical support but a was given the chance to enter
the world of coding and so i did.

i only code for PC IE and NS and Mac IE and NS any other browser is
irrelevant as the target audience our customers are aiming at 99.99999999%
cover all these browsers - if you've found a new browser and are using
something like Mozilla (which i think is an excellent browser) then its
assumed you have enough knowledge to understand that not all websites may
work the same - lazy...hmmm..possibly but we have research the target
audience and we selected the appropriate browsers from that.

cheers

paul backhouse

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of .jeff
Sent: 10 October 2001 17:08
To: thelist at lists.evolt.org
Subject: RE: [thelist] Javascript submit()


paul,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Paul Backhouse
>
> eg:
> <a href="#" onclick="javascript:
> document.name.submit();"><img src=image.gif border=0></a>
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

fwiw, the "javascript:" in the onclick event handler is completely
unnecessary and even prone to causing problems in some browsers.  the
language is already assumed to be javascript for the event handler unless
otherwise noted.

also, there are numerous reasons to not use a hash (#) as the href
attribute's value to create a dummy link.

and finally, rendering a form useless to non-js users is a monster
accessibility no-no.

please *don't* take this as a "if you can't get it right, don't help" reply.
that's not what it is at all.  i'm simply trying to identify some
inconsistencies and help clarify some things.

thanks,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/



---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list