Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / May 2004

Tip: Looking for answers? Try searching our database.

Newbie Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kate_Luu - 30 Apr 2004 17:28 GMT
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...
Paras Wadehra - 30 Apr 2004 19:56 GMT
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...
S. Han - 30 Apr 2004 20:57 GMT
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...

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.