'defaultSelected' Syntax and Note : defaultSelected : Javascript Properties : JavaScript Reference examples (example source code) Organized by topic

JavaScript Reference
C++
PHP
JavaScript Reference Home »  Javascript Properties   » [  defaultSelected  ]   
 



'defaultSelected' Syntax and Note

Note:

Read and write property. 
Sets the element selected state when the page is loaded. 
    
Syntax:
    
document.getElementById("optionID").defaultSelected = value
document.all.optionID.defaultSelected = value // IE only

    

      
      
Related examples in the same category
1.  'defaultSelected' Example
2.  'defaultSelected' Possible Values
3.  'defaultSelected' is applied to
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.