Jump to content

How can i get the object reference for onclick event


Patil
 Share

Recommended Posts

Hi,

I have one web page in that after clicking the image it is opening the another page.

In that page they defined the javascript that is onclick event has used in the code. I am unable get reference to that image. Once i click on the image it is opening the another page. i can use the mouse clicks to open the page but i can not perform other operation in that page using the mouse clicks.

operations like to get a object name and id etc. Because i didn't get any reference to that page......

Thanks...........

Link to comment
Share on other sites

You need to provide more information for anyone to help. Try providing the web page link or source, and your current script.

Maybe this is what you need?

$o_object.fireEvent ("onclick")
Hi,

Sorry for incomplete info in the post...

I have one web page in that after clicking the image it is opening the another(Second)page. For opening the page they defined javascript that is onclick event has used in the code. when we click on the image it will call javascript and open the new (Second)page.

I am unable get reference to that image. To do some other operation like to get object variable by name or id. For that i need object reference. ?

How can i get the reference for the second page or how can i do the operation like to get object variable by name or id.

Thanks...........

Link to comment
Share on other sites

I have a similar (possibly the same - I can't tell) question. How do I get the text/reference that shows up after onclick. For example in my case this is an image and to access the image source I can use "$oImg.src" but when I try "$oImg.onclick" I dont get anything. How do I simply access / read / get the text apearing after this control.

Here is the HTML I am working with:

<IMG title="Open this entry" style="CURSOR: pointer" onclick="jump('e20071001', 'A21*', 'xml')" src="images/plus.png">

Thanks in advance.

-Rob

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...