I am in the process of creating a website that features a top navbar. When I hover over one of the nav-items, a sub-nav drops down. Currently, I have implemented a JavaScript/ajax function where clicking on a nav-item displays another HTML page in my subnav like this:
<a href="javascript:ajaxpage('home_nav.html',%20'subnav');">Home</a>
Is it feasible to make the function embedded in the 'href' attribute work when hovering over the link alone? In other words, can I achieve the effect of the sub-nav with the included html dropping down simply by hovering over a nav-item?