Question: I am opening a link in a new window using jQuery:

```
<script type="text/javascript">
$(document).ready(function() {
    $('a[href="/education/global-health-courses"]').attr("target", "_blank");    
});
</script>

```

I would like to set the size of the new window to 800px wide by 700px tall. I just need a little help adding those attributes to the existing code.

Thanks.

Answer: 
You can't set those attributes using the `target="_blank"` method, you have to use the window.open method:

```
$(document).ready(function() {
    $('a[href="/education/global-health-courses"]').click(function() {
        window.open($(this).attr('href'),'title', 'width=800, height=700');
        return false;
    });   
});

```
If you really want very fine control of the look and behaviour, i strongly recommand the use of a script called [ShadowBox](http://www.shadowbox-js.com/). It's the most stable and versatile modal window javascript script. You can launch external pages inside a popup div (containing an iframe) with that script.