[thelist] Submitting a form with javascript

aardvark roselli at earthlink.net
Mon Nov 3 10:52:58 CST 2003


> From: Hershel Robinson <hershelr at netvision.net.il>
> 
> Just to play devil's advocate, what about a case where one is
> developing for an intranet or other NON-cross-browser site where all
> the users are already required to have JS enabled to use the site. In
> such a situation, why not use a link to submit the form if the link
> looks better on the page? In particular, if the client likes a link
> and not a button, why not?

if your sole concern is the look of the button, why use JS to tackle 
it when it could be done more quickly and with less hassle (and 
code) with CSS?  your scenario presents a specific 
browser/platform combo, so this could easily satisfy it if that 
combo is CSS-friendly...

i have done this in the past -- styled a button to look like a 
hyperlink -- at the client's request in a closed intranet... i found it 
was faster, easier, and offered more flexibility to use CSS...


--
my latest book project:
  Web Graphics for Non-Designers
  http://www.amazon.com/exec/obidos/ASIN/1590591712/evoltorg02-20
  ISBN: 1590591712


More information about the thelist mailing list