# Simulating Click for JS Library

**URL:** https://forum.kirupa.com/t/simulating-click-for-js-library/285823
**Category:** flash
**Created:** [April 7, 2009, 12:14am UTC](https://forum.kirupa.com/t/simulating-click-for-js-library/285823 "2009-04-07T00:14:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ibsen](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@ibsen](https://forum.kirupa.com/u/ibsen)
#### Post date: [April 7, 2009, 12:14am UTC](https://forum.kirupa.com/t/simulating-click-for-js-library/285823/1 "2009-04-07T00:14:28Z")

</div>

I have a site that uses the [SoftDIVScroll](http://scripterlative.com/files/softdivscroll.htm) library to move to different DIVs on a page. Normally, SoftDIVScroll listens for a click event on an anchor point, but I need to do something similar from a Flash movie.

So, instead of this:

\<a href="#home" id=“home\_link”\>HOME\</a\>

I need something like this:

getURL(‘document.getElementById(“home\_link”).click();’);

Except that does not work.

Ideas?

SYSTEM:  
Mac OS X 10.4.11  
Safari 3.2.1  
Firefox 3.0.7
