An Issue With An External Script in JavaScript Posted October 26, 2020 Hi there, I made two changes to your HTML text, then tested it in my PHP Storm IDE and it worked - *A paragraph* successfully changed to *paragraph changed*. 1. You need to add empty parentheses after the name of the function that is called in response to a button click - i.e. "onclick="myFunction()". 2. You need to change the 'src' value of the script element, like this: "script src="https://www.w3schools.com/js/myScript.js". You should find that making those two simple changes makes your code functional; it worked for me.
An Issue With An External Script
in JavaScript
Posted
Hi there,
I made two changes to your HTML text, then tested it in my PHP Storm IDE and it worked - *A paragraph* successfully changed to *paragraph changed*.
1. You need to add empty parentheses after the name of the function that is called in response to a button click - i.e. "onclick="myFunction()".
2. You need to change the 'src' value of the script element, like this: "script src="https://www.w3schools.com/js/myScript.js".
You should find that making those two simple changes makes your code functional; it worked for me.