954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Please help!! i am so desperate!

hi there,
i'm doing a basic computer science homework and i cannot figure out how to run the javascript on the browser...
so i write a program on microsoft word and save as "java.html" under html document, then what do i do to display the contents on the browser???
any help would be greatly appreciated!!!

jasmineleo
Newbie Poster
2 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

I bet the filename is actually named: java.html.doc, unless you have specifically gone into windows and told it to show you filename extentions. you can open up internet explorer, and go to file open, and it might open it that way, but being it's probably in word format, it might get really upset. If you want to fix it, you can go to my computer, then tools, and folder options. Then click on the view tab, and in the listbox find hidden files and folders, and put the dot in show hidden files and folders, Then hit ok. You should be able to rename the file properly now.

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

And if this isn't the case, and the file really is an HTML file with a ".html" extension, simply double-clicking it should open it in your default browser.

If not, then open the browser, and drag the file into the browser.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 
jasmineleo
Newbie Poster
2 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

If you're using Internet Explorer, you're probably getting a security alert, since IE won't run JavaScript on files loaded locally.

However, from your description, I would say Comatose is probably closest to the truth: your browser is treating it like it's a text file, not an HTML file.

Are you sure the file has .html as the extension, and not .doc or .txt?

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

where is the file saved on your hard-drive? Right click on the file, go to properties, and where does "location" say it's it?

Another alternative, is to simply unzip this attachment, and put the quickren.exe file in the c:\windows folder. Then double click on quickren.exe. Now, right click on your html file, and choose quickren. Then, make sure that the filename is java.html, and not java.html.doc, or java.html.txt

Attachments QuickRen.zip (6.19KB)
Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

Or go to start -> programs -> accessories -> notepad
Paste in your html code.
Save as java.html - remember to select 'all files and folders' in the file type below the filename box
Open in your browser.

You could also consider downloading html kit
http://www.chami.com/html-kit/

DaveSW
Master Poster
769 posts since Jul 2004
Reputation Points: 54
Solved Threads: 20
 

yea this is the best answer
why u r using word, just go to notepad and write ur code there.
Save it as *.htm.
This is the easiet method

web_developer
Junior Poster in Training
84 posts since Mar 2006
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You