User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 425,926 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,686 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 9539 | Replies: 5
Reply
Join Date: Oct 2006
Posts: 1
Reputation: idesignyards is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
idesignyards idesignyards is offline Offline
Newbie Poster

how to run javascript program

  #1  
Oct 27th, 2006
I have saved a javascript in notepad with an .htm extension. When I go to file then open and type in the file name, it just opens up a it as an address in the address bar. I want to run the program in internet explorer, how do I do that?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2006
Location: New Jersey
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Rep Power: 5
Solved Threads: 34
Moderator
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: how to run javascript program

  #2  
Oct 27th, 2006
If the file is just a javascript file you have to save it with a .js file extension and then call it from an HTML page as JavaScript does not run on its own. It must be part of a webpage.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,453
Reputation: peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough 
Rep Power: 11
Solved Threads: 296
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: how to run javascript program

  #3  
Oct 29th, 2006
another think to keep in mind, if you take that script from somebody site it may not work properly/ at all because it need some data
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 1,289
Reputation: vishesh is on a distinguished road 
Rep Power: 5
Solved Threads: 32
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: how to run javascript program

  #4  
Oct 31st, 2006
and to include js file in your pages
<script language="JavaScript" src="javascript.js" type="text/javascript">
</script>
Reply With Quote  
Join Date: Jul 2005
Posts: 24
Reputation: chiwawa10 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 2
chiwawa10 chiwawa10 is offline Offline
Newbie Poster

Re: how to run javascript program

  #5  
Apr 17th, 2008
It seems that I can run the .js file from Windows. Just double click it.
Reply With Quote  
Join Date: Jun 2008
Posts: 1
Reputation: nitin.kachale is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
nitin.kachale nitin.kachale is offline Offline
Newbie Poster

Re: how to run javascript program

  #6  
Jun 14th, 2008
how to run javascript program
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 9:03 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC