Menu
I have here menu that pop ups or vanishes when the enter key is pressed.
when i set an alert, the alert constantly say that the menu changed to inline even when it wasn’t inline before?
[code]function checkKey(event)
{
if (event.keyCode==13)
{
if (document.getElementById(‘menu’).style.display=’none’)
{
document.getElementById(‘menu’).style.display=’inline’;
}
else
{
document.getElementById(‘menu’).style.display=’none’;
}
}
}