i have the variable $hello="this is test" and i would like to do this when someone click the link "LINK" to show down of it "this is test

when click once i want to look like this
LINK
this is test

and when click again to look like this
LINK

how i can do this with javascript?

Thank you very much for your help!

It is difficult to understand the grammar. There are mouse events you can use, such as:

1. mousedown, user depresses the mouse button
2. mouseup, user releases the mouse button
3. click, one mousedown and one mouseup

You can do some js on these events.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.