ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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.

  • 1 (رد واحد)
  • 1 has this problem
  • 5 views
  • آخر ردّ كتبه isidor2706

more options

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?

File #1: <html> <head> <meta http-equiv="content-type" content="text/html; charset='UTF-8'"> <Script type="text/JavaScript" src="MyJavaScript.js"></Script> </head> <body> <input type="button" name="ShowText" value="ClickMe" onClick="JavaScript:ShowHelp ()"></input> </body> </html> 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 👍 0

All Replies (1)

more options

الحل المُختار

Error found, problem solved: The Text (example: "Here I am!") had several individual lines, which are not continued.