Change action from button to navbar link

Hi all, I am trying to use some code on implementing a Modal Popup WIndow. The popup example uses a button to implement action; however, I would like to do the same but with a link on a dropdown navbar menu. The example code is as follows:

[php]

Modal PopUp Window
<script src="JavaScript/ModalPopupWindow.js" type="text/javascript"></script>
body { font-family: Verdana; font-size: 10px; }




[/php] Not sure how to implement using the link on the dropdown menu (navbar). Would like the Modal Popup Window to display when the menu item is selected. Any help would be appreciated. Rod

One thing, update the doctype to html5.

<!doctype html>

You can use click events for anchor tags as well, you just need to either return false or use preventDefault to prevent them from changing the page.

Thanks for the reply/lesson. Worked like a charm.

Sponsor our Newsletter | Privacy Policy | Terms of Service