Monthly Archives: June 2012

Handling undefined elements in Javascript

Some times you may verify the element for null but if the element is undefined then null condition fails so best practice is to check for null and undefined. checking for null if(document.getElementsByName(“TxtElement1”)  == null) { alert(“the element is null”); … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Auto Focus the Element (Button Textbox etc)

hi friends, some times you need to set auto focus to certain elements and usage of Default button in asp.net panel may not work. JavaScript set focus may not help you  so in that situation please find the appropriate solution … Continue reading

Posted in Articles, Programming | Tagged , , , | Leave a comment