Ruby ->Watir - Clicking javascript

hi,

i have a html file with the following javascript:

                                    <td width="60"
id="toplevel_button4" onclick="javascript:window.location='/ATT/listr
eports.do'" onmouseover="javascript:window.status='General Text'"
onmouseout="javascript:window.status=''" title=
"General Text" class="toplevel_nav_button hand_Cursor">
                                            Reports
                                        </td>

can anyone advise on how to get ruby/watir to automatically 'click'
this. I have played with Watir::IE and Watir::Simple methods but cant
seem to spot it.

thanks.

That's

   ie.cell(:id, 'toplevel_button4').fire_event('onclick')

-- fxn

···

On Jul 11, 2006, at 17:25, newyorkdolluk wrote:

                                    <td width="60"
id="toplevel_button4" onclick="javascript:window.location='/ATT/listr
eports.do'" onmouseover="javascript:window.status='General Text'"
onmouseout="javascript:window.status=''" title=
"General Text" class="toplevel_nav_button hand_Cursor">
                                            Reports
                                        </td>

can anyone advise on how to get ruby/watir to automatically 'click'
this. I have played with Watir::IE and Watir::Simple methods but cant
seem to spot it.