troubleshooting Question

How to create a submenu in Javascript

Avatar of vmandem
vmandem asked on
2 Comments1 Solution742 ViewsLast Modified:
I want to create sub-menu in Javascript. I have the below snippet of Javascript code.
The first line Special Products must be a lable and when I mouse over on it I want to display the submenu which is Special Product Catalog and Special Product Capabilites. Currently the code
is shown with seperate links not as submenu. How do I include them under the Special Products Menu.


		document.write('<tr><td height="17"><a href="#" title="Special Products" class="subnav2">Special Products</a></td></tr>');
		document.write('<tr><td height="17"><a href="SpecialProducts.aspx" class="subnav2">Special Product Catalog</a></td></tr>');
		document.write('<tr><td height="17"><a href="" class="subnav2">Special Product Capabilities</a></td></tr>');
		document.write('<tr><td height="10" bgcolor="c9c9c9"></td></tr>');
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros