function init() {
document.getElementById("config").addEventListener("click", ChangeMenu('Admin', 'config'));
}
window.addEventListener('load', init);
</script>
Nika Gudge
ASKER
i do get a success alert box when the page loads. But after loading when the link is clicked the link does not work.
# is added to the url and nothing happens http://localhost:8080/abc/servlet/Admin#
Leonidas Dosas
What is the Mainform property? I think you don't declare right the MainForm property.If you post the HTML code of the form I think that we can be more efficient to our answers.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Nika Gudge
ASKER
MainForm is the form name. It has multiple links defined using xsl if else.
MainForm calls the menu.xsl <xsl:call-template name="menu"/> template which has the javascript for function ChangeMenu
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
<script language="JavaScript" type="text/javascript" nonce="{$vNonce}">
function ChangeMenu(servlet, type) {
alert('success');
//document.MainForm.disp.v
//document.MainForm.abacti
//document.MainForm.action
//document.MainForm.submit
}
function init() {
document.getElementById("c
}
window.addEventListener('l
</script>