onclick event handler question

Sort:
You are not authorized to post a reply.
Author
Messages
Anthony
Basic Member
Posts: 12
Basic Member
    I wanted to add a simple link to a .htm file when a user clicks on a word within the instructions section of the benbulletin_nh.htm file.  I was using <a href="..." with the onclick event handler along with the window.open function.&nbsp; However, the page won't load, I receive the, expected ';' error.&nbsp; The script syntax appears correct, but I'm sure I'm missing something simple.&nbsp; Is there something unique with using the onclick event handler within the instructions section?<br />
    Thank You
    Roger French
    Veteran Member
    Posts: 545
    Veteran Member
      Try posting the piece of code here so we can look at it.
      Anthony
      Basic Member
      Posts: 12
      Basic Member
        '<a href="/lawson/xbnnet/dep_elig.htm" onclick="window.open('/lawson/xbnnet/dep_elig.htm','Dependent Eligibility','width=420, height=400');return false">'<br />

        Karen Sheridan
        Veteran Member
        Posts: 141
        Veteran Member
          I've never used an onclick event when doing a href - here is how I have mine coded:

           a target=_blank href="/lawson/xhrnet/dependentsmain.htm"

          Had to take the <> out
          Roger French
          Veteran Member
          Posts: 545
          Veteran Member
            Try putting another ';' after the word 'false'. 

            '<a href="/lawson/xbnnet/dep_elig.htm" onclick="window.open('/lawson/xbnnet/dep_elig.htm','Dependent Eligibility','width=420, height=400');return false;">'<br />
            Also check the entire syntax of the href statement again.

            You are not authorized to post a reply.