# Link within a popup window

**URL:** <https://forum.kirupa.com/t/link-within-a-popup-window/111302>\
**Category:** Uncategorized\
**Created:** [May 25, 2004, 6:01pm UTC](https://forum.kirupa.com/t/link-within-a-popup-window/111302 "2004-05-25T18:01:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![randocommando](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@randocommando](https://forum.kirupa.com/u/randocommando)\
**Post date:** [May 25, 2004, 6:01pm UTC](https://forum.kirupa.com/t/link-within-a-popup-window/111302/1 "2004-05-25T18:01:46Z")

</div>

How do I link to a site, within a popup window? I don’t want my entire page to be replaced by another site, just within a popup window.

I am a total newbie and I have no idea about what code to use or how to physically make the popup window happen.

Thanks for your help.

Nervous and restless…I’m no longer young.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 25, 2004, 6:24pm UTC](https://forum.kirupa.com/t/link-within-a-popup-window/111302/2 "2004-05-25T18:24:46Z")

</div>

When you input your link path on the text object, set the target fiel to “\_blank”. That will open a new browser window for the link.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 25, 2004, 9:48pm UTC](https://forum.kirupa.com/t/link-within-a-popup-window/111302/3 "2004-05-25T21:48:49Z")

</div>

if you know anything about jscript you can do it that way tooo…

::EDIT::  
Put this in your header of your HTML file…

```auto
  
<script language="javascript">
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
	if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
</script>

```

And then all you have to do is call the function and pass it variables…  
You call the function like this in a link…

```auto
  
<a href="javascript:popUpWindow('http://www.simplifiedsoftware.org','20', '20', '200','200')">LINK</a>

```
