View Single Post
Old Aug 31st, 2005, 8:07 PM   #1
Lance
Programmer
 
Lance's Avatar
 
Join Date: Oct 2004
Location: Chicago, IL USA
Posts: 74
Rep Power: 4 Lance is on a distinguished road
Send a message via AIM to Lance
Built-in functions?

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...?
__________________
/* LANCE */
C++;  /* this makes C bigger but returns the old value */
char *site = "slackwise.net",
     *home = "lance.slackwise.net",
     *pics = "flickr.com/photos/slackwise";
Lance is offline   Reply With Quote