Jump to content

Tricky javascript/CSS/jQuery for mouse click simulation needed


Recommended Posts

Lets start with a (german) sample webpage which shows some data information:


Now when user click on a "+" sign right of one of the grey bars in the mid (e.g. right of "Aktuelles Portfolio")
then the content inside this section is expanded.

Unfortunately I cannot tell the webpage to always automatically expand this section when it is loaded.

So I need some javascript/CSS/jQuery statements in a Greasemonkey script to emulation/simulate such a mouse click.

Have a look at the following snapshot of Firebug inside Firefox:


You can see yellow hightlighted parameters which change when users click on the "+" and toogle expansion status.


How can I emulate/simulate these changes (=a mouse click) with Javascript/CSS?



Edited by pstein
Link to comment
Share on other sites



Thank you for the answer.


But: What excatly is a click handler?


The element in focus looks like:


<i class="ieon-expand accordion-icon pull-right"></i>


What is the corresponding click handler?


How do I execute such a click method from JavaScript?



Edited by pstein
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

  • Create New...