I am developing a Ajax based web application.I want to add HREF and OnClick, both to the anchor tag.
This I want to do because of 2 reasons,
- To keep the web application SEO friendly.'
- Secondly, if user does a "left click event" in that case I want to call AJAX query and in case of "right click event", I want to open a page in new TAB or Window.
I was trying following code but its not working.
<A href="http://www.website.com/" onClick="alert("right click event fired"); return false;">stuff</A>
My question is, Is it possible to achieve case?
this might work
the double quotes were getting closed in the middle..