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?
idesignyards
0
Newbie Poster
Recommended Answers
Jump to PostIf 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.
Jump to Postanother 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
Jump to Postand to include js file in your pages
<script language="JavaScript" src="javascript.js" type="text/javascript"> </script>
Jump to PostIt seems that I can run the .js file from Windows. Just double click it.
All 13 Replies
stymiee
111
He's No Good To Me Dead
Team Colleague
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
GreenDay2001
chiwawa10
77
Junior Poster
nitin.kachale
0
Newbie Poster
infotech_mominp
0
Newbie Poster
rajarajan2017
Rajib Ganguly
0
Newbie Poster
oakleymk
0
Newbie Poster
Twinky9
0
Newbie Poster
abii3roxx
0
Newbie Poster
Isaac_6
0
Newbie Poster
piers
8
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.