...

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



mull300
07-03-2007, 07: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(){
alert(1);

}


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, 07:26 PM
It works for me and the alert appears.

What version of IE are you using?

Could it be alert("1");

mull300
07-03-2007, 07: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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum