Microsoft Java Script Syntax Error
Contents |
be down. Please try the request again. Your cache administrator is webmaster. Generated Thu, 20 Oct 2016 12:25:40 GMT by s_nt6 (squid/3.5.20)
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company script error internet explorer Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up compilation error in jscript file up vote 0 down vote favorite I have create a JavaScript file name:myscripts.js and include in http://answers.microsoft.com/en-us/ie/forum/ie8-windows_other/jscript-compilation-error-syntax-error/c4b6b6b8-17aa-4e65-9523-99fcfa52a3de other html files like: but error occur: Script: [location of file] Line: 1 Char: 1 Error: Syntax error Code: 800A03EA Source: Microsoft JScript compilation error myscripts.js file code:
javascript share|improve this question asked Jun 7 '15 at 11:06 Zohra Rao 174 2 Is that indeed your js file? Why did you put HTML tag inside your JS? –Tao P. R. http://stackoverflow.com/questions/30692791/compilation-error-in-jscript-file Jun 7 '15 at 11:07 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote accepted Your js file should only contain this document.getElementById("demo").innerHTML = Date(); The below should go into your html Updated: my html file in full:below. See Also… Template file types Problem: Syntax Error, Microsoft JScript Compilation Error Solutions http://allwebco-templates.com/support/S_javascript_error.htm for opening .js files and / or changing file associations in Windows for .js files. Solution #1 Open Notepad or TextEdit, open the template folder, then drag the .js file into Notepad or TextEdit and drop it. Edit and save your file. Solution #2 Open Notepad or TextEdit, select "file" then "open", browse syntax error to the template folder, select "all file types" and open the .js file. Edit and save your file. Solution #3 Windows Only: Change the file associations so you can double click .js files for editing. Open "My computer" choose tools, or options, then choose "folder options" choose the "file types" tab. Find "JS" on microsoft jscript compilation the list and change the opening application to Notepad. You may need to search at Google for "changing file associations" for your specific version of Windows. Mac Only: You will change the application in which a .js document opens. In Finder, select the .js file, like "menu.js", choose "File" > "Get Info". In the Info window, click the disclosure triangle next to "Open With", and select the TextEdit application to open the document from the "Open With" pop-up menu. If you want all .js documents to open with the same application, click "Change All". See also Problems Opening .js Files Related Topics: Editing The HTML Pages Macintosh Software Choosing Software .js File Types Editing .js Files .js File Variables Add New Item to a .js File .js File Errors .js File Not Displaying Header, Footer, Menu, Not Showing Elements Not Displaying on Mobile Allwebco Design Corporation Stand alone HTML downloadable website layouts. For personal or small business.