firing HTML elements click events
The HTML below isn't submitting correctly to this forum. The "click me to see something" is text inside of a SPAN. You can see the same issue if it's a DIV or Anchor, etc..
fireEvent and .click() aren't working for me.
Code Sample
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Safari Behavior : Click Event</title>
<script language="javascript" type="text/javascript">
function buttonClick()
{
//spanClick.fireEvent("onclick");
spanClick.click();
}
function clickEvent(x)
{
alert(x + " was clicked");
}
</script>
</head>
<body>
Click me to see something ....
<button id="oButton1" onclick="buttonClick();">Click to fire event</button>
</body>
</html>