# Pass varible to new window

**URL:** <https://forum.kirupa.com/t/pass-varible-to-new-window/164428>\
**Category:** web dev\
**Created:** [October 1, 2005, 3:30am UTC](https://forum.kirupa.com/t/pass-varible-to-new-window/164428 "2005-10-01T03:30:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhamej](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rhamej](https://forum.kirupa.com/u/rhamej)\
**Post date:** [October 1, 2005, 3:30am UTC](https://forum.kirupa.com/t/pass-varible-to-new-window/164428/1 "2005-10-01T03:30:06Z")

</div>

What I need to do is create a function that passes a new URL and the image name to a new page. Then have the new window use document.write to spit out the image.

Im trying to get around having to create tons of html pages for an image pop-up window. The server doesnt support caca so im resorting to this. Other wise I’d just write a little php code to do it ☹

Ive little experience with javascript. But i can usually get it to work, cept this time 😛

Any ideas, please point them my way. 🙂  
Thanks.  
Josh
