Prev | Current Page 397 | Next

Craig Grannell

"The Essential Guide to CSS and HTML Web Design"

A workaround is to encrypt e-mail addresses using a bulletproof
concoction of JavaScript. The Enkoder form from Hivelogic is a neat way of going about
this, and produces decent results.
This online form at www.hivelogic.com/enkoder/form enables you to create a mailto:
link that??™s composed of complex JavaScript. Although in time, spambots will likely break
this code, as they have with simpler encoders, it??™s the best example I??™ve seen, and the
results I??™ve had with it have been good. Beware, though, that any users with JavaScript disabled
won??™t see the address, so ensure that you cater to them by including some other
means of contacting the site owner.
Working with forms
In this section, we??™ll work through how to create a form and add controls. We??™ll also look
at how to improve form accessibility by using the tabindex attribute, and the label,
fieldset, and legend elements.
As suggested earlier in the chapter, the best way of getting user feedback is through an
online form that the user fills in and submits. Fields are configured by the designer,
enabling the site owner to receive specific information. However, don??™t go overboard: provide
users with a massive, sprawling online form and they will most likely not bother filling
it in, and will go elsewhere.
Similarly, although you can use JavaScript to make certain form fields required, I??™m not a
fan of this technique, because it annoys users. Some sites go overboard on this, ???forcing???
users to input a whole bunch of details, some of which may simply not be applicable to the
user.


Pages:
385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409