At 10/16/2006 12:49 PM, [EMAIL PROTECTED] wrote:
I'm trying to clean as much JS crud from the body as I can. My JS skills
are still somewhat limited. I have a couple methods I wish to eliminate
from the body but still have available. How do I do it?
Google "unobtrusive javascript" to learn how you can (and arguably
should) eliminate ALL scripting from your HTML file, leaving only the
script tag <script src="" ...> itself.
In a nutshell, in an external script you set the onload event to
trigger your initialization function which applies behaviors to
specific elements on the page. In the same way that we're cleanly
separating CSS presentation from HTML markup, so you can cleanly
separate JavaScript behavior from markup. The connectors between
these layers are your tag names, ids, and classes.
Regards,
Paul
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************