| | |
Please help!! i am so desperate!
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2006
Posts: 2
Reputation:
Solved Threads: 0
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!!!
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!!!
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.
•
•
Join Date: Mar 2006
Posts: 2
Reputation:
Solved Threads: 0
thank you so much for your help...but i still don't understand??
all i'm trying to do is open the document file through a web browser but when i open the internet explorer, and go to file, open, and open the document file, it shows exactly what i wrote in my document file... since it's a javascript program, shouldn't it only show hello world! if i wrote:
<html>
<body>
<script type="text/javascript">
document.write("Hello World!")
</script>
</body>
</html>
all i'm trying to do is open the document file through a web browser but when i open the internet explorer, and go to file, open, and open the document file, it shows exactly what i wrote in my document file... since it's a javascript program, shouldn't it only show hello world! if i wrote:
<html>
<body>
<script type="text/javascript">
document.write("Hello World!")
</script>
</body>
</html>
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
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?
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?
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
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
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/
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/
![]() |
Similar Threads
- Please Read....Im desperate... (Troubleshooting Dead Machines)
- Desperate Call For Help!! (Windows NT / 2000 / XP)
- c++/unix fork(), fifo's, desperate need of help (C++)
- server (*nix Software)
- Travel AOL Instant Messenger (Windows NT / 2000 / XP)
- Seti@Home (Geeks' Lounge)
- We'z goin' downhill ... (DaniWeb Community Feedback)
- Some Basic Code Hopefully (Help Needed) (HTML and CSS)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: How to close IE without a user dialog box?
- Next Thread: Runtime Error Help PLEASE
| Thread Tools | Search this Thread |
acid2 ajax ajaxexample ajaxjspservlets array browser bug captchaformproblem cart checkbox child class close codes createrange() css cursor date debugger decimal dependent design disablefirebug dom dropdown editor element embed engine enter error events explorer ext file firefox focus form forms frameworks getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe images index internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl listbox maps masterpage math media menu mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php position post problem programming progressbar prototype redirect runtime safari scale scriptlets scroll search security shopping size software toggle unicode w3c web wysiwyg \n






