Exhibits, Shows and Displays

My webpage displays the code instead of the content?

I have been experimenting with javascript and have written a simple script in word and saved it as an HTML file. When I try to get the browser to display the webpage it just displays the code instead of the content. The page info says it is saved as text/html, but it still refuses to display, regardless of the browser used. Any help would be appreciated

Public Comments

  1. Did you put the javascript inside tags? <script></script>
  2. Can't promise anything, but e-mail me the web page, i.e., the HTML page and I'll see if I can spot anything obvious. lionelbeck@btinternet.com
  3. Maybe you might wanna use the compiler(javascript) itself to write the web page and save it and try to open ot again Hope this helps
  4. You should copy all the code into Notepad and save it as a .htm or .html file word's not the best place to be writing web codes and script
  5. I'm not an expert in Javascript tho do use them on many of my websites. First notepad would be the best place to write scripts, Word often puts extra formatting into its documents. You can save it as a Javascript in Notepad just add .js to the end of the file name. When you try to open a script in Notepad tho you will need change the bottom field to All Files not just .txt documents. I usually upload most of my scripts and just call them from within a webpage. So you dont have to change the script on each of your pages only the main file you uploaded. Upload your script then use something like the code below to call it from each webpage you want to use it on. <script src="http://www.domain.com/script.js" language="javascript" type="text/javascript"></script> Cant get it to show excatly on here but hope you get the just of it.
Powered by Yahoo! Answers