HTML CSS Reference/HTML Attributes Reference/datafld

Материал из Web эксперт
Перейти к: навигация, поиск

"datafld" Example

   <source lang="html4strict">
   

<HTML> <head><Title>Example For datafld</Title></head> <BODY> <a datasrc="#myDataSource"

  datafld="column1" 
  dataformatas="html"
  target="_blank">Example of datafld attribute</a>
  <object id="myDataSource" 
          classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
      <param name="DataURL" value="YourDatafldDatasrc.txt">
      <param name="FieldDelim" value="\">
      <param name="RowDelim" value="\">
  </object>

</BODY> </HTML>


     </source>
   
  


datafld is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <applet> |

| |<button>
|

| |<fieldset> <frame> | | |<iframe> <img> | | |<inputtype="button"> <input type="checkbox"> | | |<input type="hidden"> <inputtype="image"> | | |<input type="password"> <input type="radio"> | | |<input type="text"> <label> | | |<marquee> <param> | | |<select> | | |<textarea> | +----------------+--------------------------------------------------------------+

     </source>
   
  


"datafld" Syntax and Note

   <source lang="html4strict">

Note:

This attribute determines which field in the datasrc the element should be bound to. datafld acts as an intermediary between the page and the datasrc.

Syntax:

<element datafld="value" > . . . </element>


     </source>