Re: [Htmlparser-user] performing onclick
Brought to you by:
derrickoswald
From: Jessop, I. R <isa...@hp...> - 2011-10-17 21:04:35
|
The on click event triggers JavaScript In this case a function called redirectUrl and passes it a reference to the html element in this case the image tag. My guess ( and it is only a guess as I don't have the source of you're the page you are parsing) Is that this function handles all the image clicks on the page and uses the reference passed to determine what url to redirect to In order for you " perform the on click " you would need to parse out the JavaScript function and determine what action it would take ( url redirect) when this image is clicked then do the redirect. Isaac Jessop From: tubin gen [mailto:fac...@gm...] Sent: Monday, October 17, 2011 1:51 PM To: htm...@li... Subject: [Htmlparser-user] performing onclick I was using html parser to parse some html ,Now My html has an image here is the html <img src="Repository/Movie%20Section/Telugu%20Movies/Gundamma%20G-Gundamma%20Gari%20Krishnulu%20VCD_T.jpg" id="Movies_dlMovies_ctl14_imgMovieImage" class="imgStyle" onclick="javascript:return redirectUrl(this);" alt="Gundamma Gari Krishnulu"> this img tag has onClick function , so when I clikc the image the new page whose url is not in the html but the function generates it is opened , using htmlparser can I perform onclick on this image ? If not what library should I use to perform onclick? |