I am trying to call Java Script by pressing a button on Dashboard but it doesn't seem to work.
Could anyone teach me how to do this? As a first step, i want to pop up an alert saying "YAHOO" by clicking the button.
Final goal is better than that but just want to check that JavaScript actually works.
My source codes are below:
Dashboard XML:
input type="button" name="yahoo" value="YAHOO" onClick="kakunin()"
Java Script (in /opt/splunk/etc/apps//appserver/static)
function kakunin(){
alert("YAHOO");
}
↧