title: Need help for clicking a function
body: <p>I want to click a small tool tip sized dialoge box that has the content "Remove Association" in it. I have the following scripts for it:</p>
  
  <pre><code>strMenu_Body = menu.document.body;
      strMenu_Body.style.backgroundColor = "#EFF6FD";
      var strMenu_Text = "&lt;TABLE Align=Center width=100% height=100% CellPadding=0 CellSpacing=0 Border=1 BorderColor=#A5BACE style=font-family:arial;font-size:12px;color:black;&gt;"
      if (type != "Flag") {
          if (val.indexOf('s10001') &gt; 0) {
              if (document.all(val).iComponentType) {
                  if (document.all(val).iComponentType == "Recall")
                      strMenu_Text = strMenu_Text + "&lt;TR HEIGHT=20 ID=traSch1 &gt;&lt;TD align=center&gt;&amp;nbsp;&lt;Font ID=RemoveAssociation onClick=parent.callParent('" + val + "','DELETE_ASSOCIATION') style=cursor:hand onmouseover=javascript:this.style.color='red'; onmouseout=javascript:this.style.color='black';&gt;Delete Recall&lt;/Font&gt;&lt;/TD&gt;&lt;/TR&gt;"
                  else
                      strMenu_Text = strMenu_Text + "&lt;TR HEIGHT=20 ID=traSch1 &gt;&lt;TD align=center&gt;&amp;nbsp;&lt;Font ID=RemoveAssociation onClick=parent.callParent('" + val + "','DELETE_ASSOCIATION') style=cursor:hand onmouseover=javascript:this.style.color='red'; onmouseout=javascript:this.style.color='black';&gt;Cancel Appointment&lt;/Font&gt;&lt;/TD&gt;&lt;/TR&gt;"
              }
              else
                  strMenu_Text = strMenu_Text + "&lt;TR HEIGHT=20 ID=traSch1 &gt;&lt;TD align=center&gt;&amp;nbsp;&lt;Font ID=RemoveAssociation onClick=parent.callParent('" + val + "','DELETE_ASSOCIATION') style=cursor:hand onmouseover=javascript:this.style.color='red'; onmouseout=javascript:this.style.color='black';&gt;Delete Recall&lt;/Font&gt;&lt;/TD&gt;&lt;/TR&gt;";
          }
          else if (val.indexOf('s20002') &gt; 0) {
              if (document.all("btn~~PatEducations20002").all("Comp_Heading").innerHTML.length &gt; 20)
                  strMenu_Text = strMenu_Text + "&lt;TR HEIGHT=20 ID=traSch1 &gt;&lt;TD&gt;&amp;nbsp;&lt;Font ID=RemoveAssociation onClick=parent.removePatientEducation(0); style=cursor:hand onmouseover=javascript:this.style.color='red'; onmouseout=javascript:this.style.color='black';&gt;Remove Flag&lt;/Font&gt;&lt;/TD&gt;&lt;/TR&gt;"
              else
                  strMenu_Text = strMenu_Text + "&lt;TR HEIGHT=20 ID=traSch1 &gt;&lt;TD align=center&gt;&amp;nbsp;&lt;Font ID=RemoveAssociation onClick=parent.removePatientEducation(1); style=cursor:hand onmouseover=javascript:this.style.color='red'; onmouseout=javascript:this.style.color='black';&gt;Remove Association&lt;/Font&gt;&lt;/TD&gt;&lt;/TR&gt;"
          }
          else
              strMenu_Text = strMenu_Text + "&lt;TR HEIGHT=20 ID=traSch1 &gt;&lt;TD&gt;&amp;nbsp;&lt;Font ID=RemoveAssociation onClick=parent.callParent('" + val + "','DELETE_ASSOCIATION') style=cursor:hand onmouseover=javascript:this.style.color='red'; onmouseout=javascript:this.style.color='black';&gt;Remove Association&lt;/Font&gt;&lt;/TD&gt;&lt;/TR&gt;"
      }
      else
          strMenu_Text = strMenu_Text + "&lt;TR HEIGHT=20 ID=traSch1 &gt;&lt;TD&gt;&amp;nbsp;&lt;Font ID=RemoveAssociation onClick=parent.callParent('" + val + "','DELETE_FLAG_ASSOCIATION') style=cursor:hand onmouseover=javascript:this.style.color='red'; onmouseout=javascript:this.style.color='black';&gt;Remove Flag&lt;/Font&gt;&lt;/TD&gt;&lt;/TR&gt;"
          strMenu_Text = strMenu_Text + "&lt;/TABLE&gt;"
          strMenu_Body.innerHTML = strMenu_Text
          menu.show(intMenu_X, intMenu_Y, intMenu_Width, intMenu_Height, document.all("cmbFontName"))
  }
  </code></pre>
  
  <p>`</p>
  
  <p>I dont know how to click that dialoge box. kindly help. I am using java, selenium, IE 10, Win 8.</p>
  
  <p>Also please tell me how to click elements with attribute "onclick" e.g <code>onClick=parent.callParent('" + val + "','DELETE_ASSOCIATION')</code>. Many thanks</p>