|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
xhtml compliant form field focus
good day, all.
hope i'm not going to get a beasting for posting an xhtml question here - only one way to find out. having written a beautifully xhtml compliant page - i noticed that i hadn't yet put the form field focus in to make the cursor sit in the first field to be filled in. duly popped in Code:
<body OnLoad="document.prodcomlobby.login.focus();"> only to discover that an OnLoad event isn't allowed in XHTML. Anyone know how i can do this and still stay XHTML street legal ?
__________________
rgds bdjt |
|
#2
|
||||
|
||||
|
yo check ya'self you be blingin it up proper like with ya onLoad, now you got street cred yO!
from http://www.w3.org/TR/2002/REC-xhtml...ransitional.dtd Code:
<!--=================== Document Body ====================================--> <!ELEMENT body %Flow;> <!ATTLIST body %attrs; onload %Script; #IMPLIED onunload %Script; #IMPLIED background %URI; #IMPLIED bgcolor %Color; #IMPLIED text %Color; #IMPLIED link %Color; #IMPLIED vlink %Color; #IMPLIED alink %Color; #IMPLIED > <!ELEMENT div %Flow;> <!-- generic language/style container --> <!ATTLIST div %attrs; %TextAlign; > from http://www.w3.org/TR/2002/REC-xhtml...tml1-strict.dtd Code:
<!--=================== Document Body ====================================--> <!ELEMENT body %Block;> <!ATTLIST body %attrs; onload %Script; #IMPLIED onunload %Script; #IMPLIED > <!ELEMENT div %Flow;> <!-- generic language/style container --> <!ATTLIST div %attrs; >
__________________
Teflon - The Black <desc>Mark This Up</desc> Last edited by Teflon : August 25th, 2004 at 02:21 PM. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > xhtml compliant form field focus |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|