Skip to content

"click" function clicks twice #9

@mbohy

Description

@mbohy

Firefox version: 7.0.1
Chickenfoot version: 1.0.8

Create and load a web page containing the following HTML and Javascript:

<html>
<head>
<script>

function logClick()
{
  var div = document.getElementById("log");
  div.innerHTML += "Clicked!<br />";
}

</script>
</head>
<body>
<input type="button" value="Click me!" id="btn" onClick="logClick()" />
<div id="log"></div>
</body>
</html>

If you click the button, you should see the "Clicked!" message appear below the button. However, if you run "click('Click me!')" in the Script Editor, you will see TWO "Clicked!" messages appear. So the click function seems to be clicking twice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions