.NET Framework Bookmark and Share   
 index > JScript for the .NET Framework > Microsoft JScript runtime error: Object doesn't support this property or method
 

Microsoft JScript runtime error: Object doesn't support this property or method

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>

ShineShell
Could you enter the code including the HTML Markup for these two buttons?
Ganesh Ranganathan - Bangalore, India

Hello,

We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

Best Regards,
Lingzhi


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Lingzhi Sun

You can use google to search for other answers

Custom Search

More Threads

• ScrollingText - html tags problem
• Error changing document.all to document.getElementByID
• Problem displaying data in DropDownList control while writing
• window.showModelessDialog...I want to enable the maximize and minimize Buttons?
• how to jscript in vb.net
• Performance issues for web site project during development
• Confirm dialog box on dropdownlist selected value changed
• Prototype object calling c# code problem
• IE WebControls Treeview: manual postback?
• using jva script menu for master page