CommercialTr796
11 months agoCommunity Member
Javascript stopped working overnight
Hello,
I have a javascript that is used to open a pre-populated email and it has been working fine for the last month. However, it is no longer working after the weekend. Whenever the code should execute, nothing happens, whereas previously an outlook email would appear.
Is the code wrong? Has one of the updates affected it?
Any ideas would be great.
Here is the code:
var player = GetPlayer();
var email = 'name@emailaddress.com';
var subject = 'Lesson Title';
var emailBody = 'Body of text in the email';
window.location.href='mailto:'+email+'?subject='+subject+'&body='+encodeURIComponent(emailBody);