<script language="javascript" type="text/javascript">
var a =10;
function test()
{
if ( a ==10) {
document.sample.checkbox1.checked = true ;
}
}
</script>
<form name="sample">
<input type="checkbox" name="checkBox1" test();>Option
</form>
While creating form itself its automatically call function based on it should decide whether its need to checked or not ..
Here the question . How to call the function without any click ( on click event )
Thanks , Chells