Hi. I'm trying to create a function that clicks a link when called. Its working in IE 7 but not in Firefox/Safari. here is the function:
Code:
function open_greybox() {
document.getElementById("grey_link").click();
}
The error console for firefox is telling me:
Error: this.document.getElementById("grey_link").click is not a function
Does firefox not support "click()"? Is there a workaround? A hidden link has to be clicked by javascript when the function is called (from a flash movie).
Any help would be greatly appreciated!