Best viewed in 1024 X 800 resolution... Leave a comment if u like an article...
Google
 
Web tezcols.blogspot.com

Wednesday, November 15, 2006

unselectable attribute in HTML

Hey !! wil u bliv if i say tht HTMl has an attribute named 'unselectable'. This attribute can make an element not to be selectable. Let me tel clearly. 4 suppos u hav a HTML table n a no. of td tags in it. A part of text in a td can be selected by dragging on the desired part. Try settin unselectable="on" in td tag. The magic cums in. You cannot select a part of text now in that td. Not jus in td tag. U can use it in span,div...... etc.

U can set the 'unselectable' attribute to either 'on' or 'off'. The default value for an unselectable attribute in an HTML element is set to 'off'.

Nice tip na...

k bye...

tezcols

Labels:

0 Comments:

Post a Comment

<< Home