Is it possible to load the pop up menu script on user click only?
Return to Recent Questions
Q:
Is there maybe a way that I can set up the pop up menu script so that
it does not load at all until someone clicks on, say, a link, such
as 'Products' and clicking on that link would then load the pop up menu script
onto the page in the desired position?
A:
Yes, you can do it.
Delete dm_init(); function from data file and use OnClick event for
your 'Products' link.
<a href="products.html" OnClick="dm_init();">Products</a>
Return to Recent Questions
Related:
|