•
•
•
•
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 426,187 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,831 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: 1409 | Replies: 1
![]() |
•
•
Join Date: Sep 2006
Posts: 65
Reputation:
Rep Power: 0
Solved Threads: 0
Hi all,
Instead of writing javascript functions on the html page it self, we could write those in separate “.js” file and import it as follow.
<script src="fileName.js" ></script>
But when we do this and check the web page source on the browser, there is no any JavaScript function there..
But those functions cab be executed. so there should be those functions on the client machine..
So I want to know where those JavaScript functions are..????
Thanks....
janaka priyadarshana
Instead of writing javascript functions on the html page it self, we could write those in separate “.js” file and import it as follow.
<script src="fileName.js" ></script>
But when we do this and check the web page source on the browser, there is no any JavaScript function there..
But those functions cab be executed. so there should be those functions on the client machine..
So I want to know where those JavaScript functions are..????
Thanks....
janaka priyadarshana
When you include a .js file all the functions are available to page. All functions could be executed. Even if you cant see the javascript code, the the is actually downloaded. Whenever a web page loads it loads all things in it, including images, css files anf js too.
If you want to see it yourself delete all temerory internet files, cookies and then open a web page with js file included. You can see that js file in Temporary Internet File Directory.
So dont worry about it, its normal and will work everywhere.
If you want to see it yourself delete all temerory internet files, cookies and then open a web page with js file included. You can see that js file in Temporary Internet File Directory.
So dont worry about it, its normal and will work everywhere.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- what are "prejava" files? (Java)
- Have a problem with centering "jpg" files (HTML and CSS)
- WIN XP AND "SCRUBING" FILES (Windows NT / 2000 / XP / 2003)
- Cant upload dreamweaver "files folder" to site (Networking Hardware Configuration)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Rectangular Marquee Tool
- Next Thread: add sub menu items to css menu?



Linear Mode