I've included the code below:
<s:submit type="input" value="clickme" onclick="func()"/>
Inside the func()
function, there's an alert("hereee") command. When I click the button, it displays "hereee" in an alert window but also refreshes the page. Is there a way to prevent the page from refreshing when I click?
Any suggestions would be greatly appreciated.