Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a function in onClick?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am displaying a list of folders on the server and when a user clicks on the closed_folder.gif I want to change it to another gif(open_folder.gif) and display the files in that particular folder.
here is what i got so far:

<INPUT TYPE=image IMG SRC=&quot;closed_folder.gif&quot; onclick='Switch_Icons'>

Switch_Icons is the function that I want to call...


any suggestions????

thanks,
Dan
 
You can't call a ASP function from Javascript, because asp is processed before its sent to the users browser.
 
You can use a Javascript function, just like all the onMouseOver functions that are used for links on websites.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top