...

View Full Version : Removing default onfocus for Password field on pageload



rtalapaneni
04-27-2008, 05:55 PM
Hi Guys,

I am facing one problem with onfocus event, I have only Password field in the form and onfocus event for that field,in onfous method we are showing the alert message.My problem while the page on modalwindow onfocus event is firing,thats why alert message is showing.Expected is we have remove this onfocus event while loading the page.I am using IE as my browser.

Thanks,

rmedek
04-27-2008, 11:36 PM
This belongs in Javascript…moving.

mjlorbet
04-28-2008, 08:55 PM
<script type="text/javascript">
window.onload = function(){
document.getElementById("your_password_fields_id").onfocus = function(){};
}
</script>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum