• Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

JavaScript add link to image popup


New Coder
i have this code that automatically opens a popup image and i need to add a link to that image - below is the code - appreciate your help

<BODY onLoad="popup('Raise-Capital.png', 'ad')">

<SCRIPT TYPE="text/javascript"> function popup(mylink, windowname) { if (! window.focus)return true; var href; if (typeof(mylink) == 'string') href=mylink; else href=mylink.href; window.open(href, windowname, 'width=700,height=440,left=350, top=100,location=no,status=no,resizable=no,menubar=no,directories=no,toolbar=no,scrollbars=no'); return false; } </SCRIPT>