I am absolutly new in JavaScript and I have this doubt.

I have this clickable image:

```
 <img src="<%=request.getContextPath()%>/images/delete.png" alt="remove"
      id="RemoveProject"
      style="cursor: pointer;"
      title="remove"
      onClick="submitMyProjectAction('<s:property value="idProjectInfo"/>', this.id)"
  />

```

As you can see when the user click on the image it is performed this JavaScript function that simply submit a form:

```
function submitMyProjectAction(id, imgId) {
    alert(imgId);

    document.getElementById("projectActionId").value = id;
    document.getElementById("clickedActionId").value = imgId;
    document.getElementById('myProjectAction').submit();
}

```

I know that should exist a way to automatically open something like a dialog that ask confirmation for this operation. So if the user click on yes the submitMyProjectAction() JavaScript function is performed.

But I can't remember the name of this stuff. Can you help me?