Question: What I want to do is to get the value of `value` and open it in new window with a specific size using JavaScript.

HTML

```
<a id="LNK" href="##" value="edit2.aspx?ren=<%# Eval("GLR_ID") %>" onclick="clickLink()">RENAME</a>

```

JavaScript

```
<script type="text/javascript">
        function clickLink() {
           var myLink = //I need to get the value of `value`
           window.open(myLink,'Rename','height=150px','width=250px');
           return false;
        }
</script> 

```

Please correct my grammar, Thank You.

Answer: 
<http://jsfiddle.net/trevordixon/4HE97/>

Pass a reference to the anchor to `clickLink`:

```
<a id="LNK" href="##" value="edit2.aspx?ren=<%# Eval("GLR_ID") %>" onclick="clickLink(this)">RENAME</a>

```

Use `getAttribute` to get the value:

```
    function clickLink(a) {
       var myLink = a.getAttribute('value');
       window.open(myLink,'Rename','height=150px','width=250px');
       return false;
    }

```
You can get DOM value using `getElementByID().value`

```
document.getElementByID('LNK').value

```

**OR**

You can pass argument into your `onClick` function.

```
onclick="clickLink(this.value)"

```

and in `function`.

```
function clickLink(value) {
var myLink = value;

```