I have a HTML-File with <script>-definition of an external javascript-file containing a javascript-function and I want to execute this function, but no result.
File #1: <meta http-equiv="content-type" content="text/html; charset='UTF-8'"> <script type="text/JavaScript" src="MyJavaScript.js"></script> <input type="button" name="ShowText" value="ClickMe" onclick="JavaScript:ShowHelp ()">
File #2: Name = "MyJavaScript.js" function ShowHelp () { alert ("Here I am!"); //<-- This Text is not displayed!! }
I tried to delete the browser-cache and refreshed the HTML-File, but the problem still remains. What can I do?
الحل المُختار
Error found, problem solved: The Text (example: "Here I am!") had several individual lines, which are not continued.
Read this answer in context 👍 0All Replies (1)
الحل المُختار
Error found, problem solved: The Text (example: "Here I am!") had several individual lines, which are not continued.