Search   Articles   Dev Forums   Personalize   Favorites   Member Login   ASP.Net Hosting
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Thursday, November 20, 2008

Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 
FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

User Rating!

Home > Search > Support WebCasts > Visual Studio .NET > Miscellaneous
Who Called the Script?, Concatenating Binary Files, and More        
Total Hits: 24  |  Today: 0 Author: Nancy Michell       Rating:  
Read Reviews | Write Review |   Your Rating: 

Is there a way to determine from which part of an HTML document a script was called, by getting, say, the ID of an element? Yes, there is. Take a look at the example in Figure 1. There are two buttons, each of which have script code that calls into a function named MyFunction. Inside of MyFunction is event.srcElement, which retrieves the particular element that triggered the initial event. Once you have this, you can get the caller's ID.

DevASP.Net users Rating
What is your opinion?
Is this your listing?

    If this is your listing and you like to add the rating box
    displayed on the right side on your site you can use the following code.

Go Back
DevASP.Net - Disclaimer - Privacy
Copyright © 2008 DevASP.net