I've searched the forums on this, and what I found didn't work for me.
I want to add an onmouseover function to an element on the page. Problem is that I need to send that function an argument. I tried the following:
element.onmouseover = new Function('alert(this.text)')
which someone else said that worked, but it only displays 'undefined'. And yes, I've defined what I try to alert; if I call the same alert on the line before it displays correctly.
What can I do?