By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,636 Members | 1,190 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,636 IT Pros & Developers. It's quick & easy.

calling a java-script function from a different page?

P: n/a
How can I call a java-script function from an .html page when the
function is in a .js page?

For now the java-script function is placed at the top of the .html
page, but I want to move the java function to its own separate page.
Thank you.

Oct 5 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Save the file in text-only format with a .js extension.

Include the file in the HEAD section of your Web pages. You can include
more than one external JavaScript file on the page. Just call each
separately like this:

<script src="ExternalJS_1.js"

<script src="ExternalJS_2.js"

Servers must be configured to serve .js files.

Oct 5 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.