Intellisense for Javascript - not correct in Visual Studio 2008/2010
- by Finglas
var obj = document.getElementById("header");
Given the above code snippet, I should be able to wire event handlers. For example, I can wire onMouseDown to the mouse down event, the issue is that Visual Studio does not display this in the Intellisense.
I'm trying something such as:
obj.onmousedown = mousestatus;
Based on a book I'm reading, the code is valid (at least it works) therefore I see no reason why Intellisense is not picking it up.
I've tried this on both a standalone Javascript file, as well as an MVC project to no luck.
Is there anything I'm doing wrong - or is there a way to resolve this?