# Popup borderless window

**URL:** <https://forum.kirupa.com/t/popup-borderless-window/3413>\
**Category:** classic bestof\
**Created:** [January 16, 2002, 4:30am UTC](https://forum.kirupa.com/t/popup-borderless-window/3413 "2002-01-16T04:30:29Z")\
**Posts on this page:** 8\
**Page:** 1

<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:** [January 16, 2002, 4:30am UTC](https://forum.kirupa.com/t/popup-borderless-window/3413/1 "2002-01-16T04:30:29Z")

</div>

I am in the process of making my first web site and I have been trying to figure out how to make my homepage pop up a s borderless window in flash. i got tutorials on how to do it by copying some java script into html, but my host adds there adds into the pop up. How could i copy the java script into flash directly. Any ideas would help\r\rthanks alot,\rben

---

<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:** [January 16, 2002, 4:47am UTC](https://forum.kirupa.com/t/popup-borderless-window/3413/2 "2002-01-16T04:47:09Z")

</div>

Ahhh, adding pop up windows with java script in flash, sinch…\r-COPY THIS INTO THE URL LINE-\r\rjavascript:o penNewWindow(‘[http://www.urdomain.com](http://www.urdomain.com)’,‘thewin’,\r ‘height=400,width=400,toolbar=no,scrollbars=yes’)\r\rjavascript:o penNewWindow\r Tells JavaScript to call the openNewWindow function \r \r’[http://www.urdomain.com](http://www.urdomain.com)’\r The URL to load into the new window \r’thewin’\r The name of the window \rheight=400\r Set the window height to 400 pixels \rwidth=400\r Set the window width to 400 pixels \rtoolbar=no\r Do not display the browser’s toolbar. Options are ‘yes’ or ‘no’ \rscrollbars=yes\r Display scrollbars in this window. Options are ‘yes’ or ‘no’ \r\rpeace,\rMark \r\ryes, thous add can really be anoying!!! Arggggggggg

---

<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:** [January 16, 2002, 4:58am UTC](https://forum.kirupa.com/t/popup-borderless-window/3413/3 "2002-01-16T04:58:36Z")

</div>

thanks for the advice, but i’m still a bit confused, do i add the scripts to the get url command in flash, can i type in any java script commands there? \r\rthanks,\rben

---

<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:** [January 16, 2002, 5:17am UTC](https://forum.kirupa.com/t/popup-borderless-window/3413/4 "2002-01-16T05:17:51Z")

</div>

There’s a tutorial on this site. Or a post somewhere.\r\rpom

---

<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:** [January 16, 2002, 5:22am UTC](https://forum.kirupa.com/t/popup-borderless-window/3413/5 "2002-01-16T05:22:16Z")

</div>

yes, when u make a link(lets just say from a button) highlight it, go to convert to syobol-\>click graphic-\> click ok\r\r1)Assign the getURL action to a button or keyframe.\r\r2)For the URL, insert the code below, copying the information exactly. \r\r\rjavascript:openNewWindow(‘[http://www.urdomain.com](http://www.urdomain.com)’,‘thewin’,\r\r\r’height=400,width=400,toolbar=no,scrollbars=yes’)\r \r\r\rThe above code can be pasted into the URL window . The above two lines must be copied seperately, then pasted together into one single string of characters.\r\r\r\rarrrr i think there is some other stuff u gota do… i could be mistaken… i sujest u wait till Kirupa, or the guy who looks like a ventrilaquest(no offence) by the way, Are u avalivle for kids magic shows?\r\r\rregards,\rMark

---

<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 9, 2003, 2:15am UTC](https://forum.kirupa.com/t/popup-borderless-window/3413/6 "2003-05-09T02:15:22Z")

</div>

here is what i use, if its the same just ignore it…😉 (sorry time for bed)  
script below is the buttons action

on (release) {  
getURL(“javascript:openNewWindow(‘pagename.html’,‘title’,‘height=525,width=790, top=0, left=0,toolbar=yes,scrollbars=no’)”);  
}

ends here

script below goes into the html page that flash movie is in

\<script language=“JavaScript”\>  
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }  
\</script\>

ok y isnt this pasting in properly???

---

<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 9, 2003, 3:32am UTC](https://forum.kirupa.com/t/popup-borderless-window/3413/7 "2003-05-09T03:32:59Z")

</div>

powder: Why did you revive this thread?

Did you not notice the last post in here was “01-16-2002 12:22 AM” (over 1 year ago) and that everyone is registered as guest because this was before [kirupaforum.com](http://kirupaforum.com) even existed and it was back in the ezboard days? 😛

---

<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 9, 2003, 10:08pm UTC](https://forum.kirupa.com/t/popup-borderless-window/3413/8 "2003-05-09T22:08:04Z")

</div>

hahahaah thats funny…

actually to be honest I just read through here cause it sometimes gives some really good foundation information about flash that I think you can sometimes skip. Anyway, the code I was trying to paste was the easiest way I found so far and I thought it would have been nice to be kept here for some newbies searchin’ around.

But hahaha your funny, yeah I must admit I do feel a little stupid 😉

see ya 😃
