JavaScript in a button not functioning
Hi,
I'm attempting to add JavaScript to a button so that when the trainee hits it, it will open an email. My I.T. department has provided me with the language of the script.
function () {
var subject = "Subject";
var body = "Body";
window.open('mailto:sampleemail@yahoo.com?subject=subject&body=body');
}
I placed it into the Script_Window and put the action as Execute JavaScript. I then publish it as HTML, but when we get to the button and hit it, the training just continues on without opening the email. I've done everything the user guide says and am told the script is correct. What else am I missing?
Thanks!
