So I'm designing a little site to learn JavaScript and DHTML, and it's going to be a mini Window Manager. Yea, I'm kinda' crazy. Anyways...
http://grog.mine.nu/~lance
I'm trying to make the top 'taskbar' focus onto a window. If they overlap, I want the taskbar to change focus to the clicked title.
But I get this...
Error: document.getElementById("windowone").focus is not a function
focus() is supposed to be a built-in function of every element, according to the
W3C DOM Level 1 Specifications.
What am I doing wrong...?