First of all, include the JS file in your page as:
<script language="JavaScript" src="JavascriptFile.js">
and then on the click of a link write the following code:
<a href="javascript:functionName()">

Signature
Paras Wadehra
You One Stop Entertainment Guide - http://www.paras.2ya.com/
> How can I execute one of the function which locate in seperate file.js when
> the user click the <A> tag?
>
> example: <A href=( what I should do here? )
>
> Thanks you all in advance and have a great day...
At the beginning of the code include the file in which contains the function
that you'd like to execute:
<head><title>...</title><script src="file.js"></script></head>
Then
<a href="Javascript:myfunction();" >...

Signature
This posting is provided "AS IS" with no warranties, and confers no rights.
> How can I execute one of the function which locate in seperate file.js
> when
[quoted text clipped - 3 lines]
>
> Thanks you all in advance and have a great day...
Kate_Luu - 10 May 2004 05:27 GMT
Thanks you all for your help, I'm deeply appreciated. Take care and have a
good one...
Kate
> At the beginning of the code include the file in which contains the function
> that you'd like to execute:
[quoted text clipped - 14 lines]
> >
> > Thanks you all in advance and have a great day...