Below is the javascript code i've added and used on button click to check wether username and password are entered or not..
but everytime i get runtime as Microsoft JScript runtime error: Object doesn't support this property or method.Plz help me out...
<
script language ="javascript" type ="text/javascript">
function
doEnter(btnid)
{
var btn = document.getElementById(btnid);
if(window.Event)
{
window.captureEvents(Event.KEYPRESS)
}
document.onkeypress = keyPressed;
function keyPressed(e)
{
var n
(window.Event) ? n=e.which : n=event.keyCode
if (n==13)
{
btn.click();
return false;
}
}
}
</
script>