The following code works in Firefox but in Internet Explorer it returns error “Object expected”.
<html>
<head>
<script type="text/javascript">
dropdown("navigation", "auto")
</script>
</head>
<body>
<div id="navigation">
<ul>
<li><a href="hhdh/"><span>Home</span> </a></li>
<li><a href="hhdh/"><span>All</span> </a></li>
<ul>
<li><a href="sss/"><span>submenu</span> </a></li>
<li><a href="sss/"><span>submenu</span> </a></li>
</ul>
</ul>
</body>
</html>
I cannot find documentation for the function dropdown anywhere.
Javascript doesn’t have a standard function called dropdown() so even if Firefox happened to have implemented one it is not going to be widely available. You would need to include a script with drop down code before calling the function.
If you’re looking for a good js drop down menu plugin then check out Superfish.