Search code examples
asp.net.netdotnetnukedotnetnuke-5

Adding Javascript in Homepage.ascx in DotNetNuke


I just want to add a small Javascript in DNN homepage.ascx file:

<script type="text/javascript">

//jkmegamenu.definemenu("anchorid", "menuid", "mouseover|click")
jkmegamenu.definemenu("megaanchor", "megamenu1", "mouseover")

</script>

Please Experts help me.


Solution

  • Hy Phillip You must insert your script in Page Settings - Advanced Settings - Page Header Tags textbox or change .ascx file in .\portals_default\skins\DarkKnight\<>.ascx

    Regards. Claudio Venturoli DotNetNuke.it staff