View Full Version : object required error in ie onClick in DIV

07-03-2007, 08:12 PM
So this is baffling me why this doesnt work. First here is the code i dumbed it down for IE as much as possible but still as usual IE is trowing an error.

javascript function:

function showTab(){


told you i dumbed it down.

html code:

<div id="friendsTab" class="tabGrey" onclick="showTab();"> Friends </div>

So why is this throwing a javascript Object Expected error in IE...

Philip M
07-03-2007, 08:26 PM
It works for me and the alert appears.

What version of IE are you using?

Could it be alert("1");

07-03-2007, 08:35 PM
The alert happens in FF. IE version 6.0

the page is: http://loudermusic.com/artist.php?user=mmulligan03 and none of the JS works on this page but the function is linked to the tabs on the right

Also i did change the alert to alert("1"); and still nothing