# Question about the Chromless tut

**URL:** https://forum.kirupa.com/t/question-about-the-chromless-tut/43132
**Category:** flash
**Created:** [February 19, 2004, 2:18am UTC](https://forum.kirupa.com/t/question-about-the-chromless-tut/43132 "2004-02-19T02:18:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Exedus](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@Exedus](https://forum.kirupa.com/u/Exedus)
#### Post date: [February 19, 2004, 2:18am UTC](https://forum.kirupa.com/t/question-about-the-chromless-tut/43132/1 "2004-02-19T02:18:55Z")

</div>

Hey all, I followed the tutorial for a chromless window in Flash 2004. My question is; is it possible to have a number of different links for the window. I want to use it for a number of different buttons on my site to open different portfolio peices. In the HTML code it seems as though I can only put in one url.

---

<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: [February 19, 2004, 10:14pm UTC](https://forum.kirupa.com/t/question-about-the-chromless-tut/43132/2 "2004-02-19T22:14:22Z")

</div>

heres how you do it. its not tested but it should work:

change this:

```auto
<script type="text/javascript" src="ByKlein_chromeless2.0.js"></script>
<script type="text/javascript" >
function createChromeless()
{
		/////////////////////////////////////////////
		//This are the attributes you can customize//
		/////////////////////////////////////////////
		var B = "http://www.kirupa.com/newdesign/tutlist.htm"; // URL
		var Y = "Example by Kirupa"; // title
		var K = "c_title.gif"; // titlebarImage
		var L = 23; // titlebarHeight
		var E = "Arial"; // titleFont
		var I = 10; // titleSize
		var N = "#5596AE"; // titleColor
		var C = false; // scrollbars
		var h = 500; // width (w)   
		var r = 400; // height (h)
		var o = true; // centered
		var m = 0; // xPos
		var e = 0; // yPos
		var l = "#5596AE"; // borderColor
		var e_= 5; // borderSize
		var s = "minimize.gif"; // minimizeBottom
		var s_= "close.gif"; // closeBottom

		myChromeless = new ChromelessWindow(B,Y,K,L,E,I,N,C,h,r,o,m,e,l,e_,s,s_);
}
createChromeless()
</script>

```

to this:

```auto
<script type="text/javascript" src="ByKlein_chromeless2.0.js"></script>
<script type="text/javascript" >
function createChromeless(B, Y)
{
		/////////////////////////////////////////////
		//This are the attributes you can customize//
		/////////////////////////////////////////////
		var K = "c_title.gif"; // titlebarImage
		var L = 23; // titlebarHeight
		var E = "Arial"; // titleFont
		var I = 10; // titleSize
		var N = "#5596AE"; // titleColor
		var C = false; // scrollbars
		var h = 500; // width (w)   
		var r = 400; // height (h)
		var o = true; // centered
		var m = 0; // xPos
		var e = 0; // yPos
		var l = "#5596AE"; // borderColor
		var e_= 5; // borderSize
		var s = "minimize.gif"; // minimizeBottom
		var s_= "close.gif"; // closeBottom

		myChromeless = new ChromelessWindow(B,Y,K,L,E,I,N,C,h,r,o,m,e,l,e_,s,s_);
}
createChromeless()
</script>

```

when you want to open a new window do this:

```auto
chromeless.onPress = function()
{
	getURL("javascript:myChromeless.openChromeless('url of page here', 'title of page here')");	
}

```

should work
