# Get url

**URL:** <https://forum.kirupa.com/t/get-url/185379>\
**Category:** Uncategorized\
**Created:** [April 12, 2006, 9:59pm UTC](https://forum.kirupa.com/t/get-url/185379 "2006-04-12T21:59:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sean1983uk](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sean1983uk](https://forum.kirupa.com/u/sean1983uk)\
**Post date:** [April 12, 2006, 9:59pm UTC](https://forum.kirupa.com/t/get-url/185379/1 "2006-04-12T21:59:08Z")

</div>

I have an array which stores a list of image links from an xml file.

the xml file is as follows:

\<gallery name=“beachbug05”\>  
\<image source=“pics/beachbug05/pic1.jpg” thumb=“pics/beachbug05/th1.jpg” title=“Rear” desc=“Description…” link=“pics/beachbug05/pic1.jpg”/\>  
\<image source=“pics/beachbug05/pic2.jpg” thumb=“pics/beachbug05/th2.jpg” title=“Unpainted” desc=“Description…” link=“pics/beachbug05/pic2.jpg”/\>  
\</gallery\>

what i’m trying to do is get the value of the current image shown and load it in a new window. (trying to get it to load the link)

I’ve created an array and called it using:

lArray.push(gallery.childNodes\*.attributes.link);

now on the button i’m using:

up\_Btn.onRelease = function() {

getURL(lArray[this.id], “\_blank”);  
};

any ideas?

Many Thanks

Sean

---

<div class="post-metadata">

**Author:** ![sean1983uk](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sean1983uk](https://forum.kirupa.com/u/sean1983uk)\
**Post date:** [April 12, 2006, 10:54pm UTC](https://forum.kirupa.com/t/get-url/185379/2 "2006-04-12T22:54:19Z")

</div>

if i put the following then it opens up the picture in that postion, but is there a way to get it to open using this.id?

up\_Btn.onRelease = function() {

getURL(lArray[0], “\_blank”);  
};

any ideas?

Many Thanks
