is it possible to force or trigger a keypress on mouse click?

what i want to do is mimic the arrow up and down keys when i click on a button. is that possible using javascript?

thank you.

Member Avatar for P0lT10n

depending on what you need... explain better.

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.