javascript document onkeydown bug IE6

IE6 bug onkeydown document javascript

I recieved an error while trying following code

function test(e) { alert(''); }

// Test

document.onkeydown = test;

but why?

After researches i have found out that when i remove the comment it works. Strange!


So the Solution is :

function test(e) { alert(''); }

document.onkeydown = test;

 



Comments are closed