# How to define a movie title on popup window?

**URL:** <https://forum.kirupa.com/t/how-to-define-a-movie-title-on-popup-window/63786>\
**Category:** Uncategorized\
**Created:** [September 9, 2004, 11:13pm UTC](https://forum.kirupa.com/t/how-to-define-a-movie-title-on-popup-window/63786 "2004-09-09T23:13:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![wheel](https://avatars.discourse-cdn.com/v4/letter/w/4da419/32.png) [@wheel](https://forum.kirupa.com/u/wheel)\
**Post date:** [September 9, 2004, 11:13pm UTC](https://forum.kirupa.com/t/how-to-define-a-movie-title-on-popup-window/63786/1 "2004-09-09T23:13:42Z")

</div>

hi all.

the pop-up window always automaticly generates and shows full web directory of the movie as its title on top of the browser. can i define this title inside MX so it could simply show anything i want it to be?

thanks in advance

---

<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:** [September 9, 2004, 11:18pm UTC](https://forum.kirupa.com/t/how-to-define-a-movie-title-on-popup-window/63786/2 "2004-09-09T23:18:08Z")

</div>

Are you using the pop up window tutorial from Kirupa by any chance? If so you can specify the target window name . . .

```auto

on (release) {
	//customize the window that gets opened
	// 0 equals NO.
	// 1 equals YES.
	address = "http://www.kirupa.com/modular/pop-up.htm";
	**target_winName = "kirupa";**
	width = 400;
	height = 300;
	toolbar = 0;
	location = 0;
	directories = 0;
	status = 0;
	menubar = 0;
	scrollbars = 1;
	resizable = 0;
	//sends data back to the function
	openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}

```

[http://www.kirupa.com/developer/mx/centered\_popup.htm](http://www.kirupa.com/developer/mx/centered_popup.htm)

:hr:

---

<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:** [September 9, 2004, 11:38pm UTC](https://forum.kirupa.com/t/how-to-define-a-movie-title-on-popup-window/63786/3 "2004-09-09T23:38:16Z")

</div>

thanks lunatic for your quick response. YES, i am using the kirupa center popup tut.

---

<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:** [September 9, 2004, 11:38pm UTC](https://forum.kirupa.com/t/how-to-define-a-movie-title-on-popup-window/63786/4 "2004-09-09T23:38:57Z")

</div>

Good - just change that line I have in bold above and it should work. :thumb:

---

<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:** [September 9, 2004, 11:49pm UTC](https://forum.kirupa.com/t/how-to-define-a-movie-title-on-popup-window/63786/5 "2004-09-09T23:49:13Z")

</div>

hi Lunatic, here is my another question, what if the pop-up is opened by click a link at a HTML like below:

\<HTML\>\<HEAD\>\<TITLE\>index\</TITLE\>  
\<META http-equiv=Content-Type content=“text/html; charset=iso-8859-1”\>  
\<SCRIPT language=JavaScript\>  
\<!–  
window.moveTo(0,0);  
if (document.all) {  
top.window.resizeTo(screen.availWidth,screen.availHeight);  
}  
else if (document.layers||document.getElementById) {  
if (top.window.outerHeight\<screen.availHeight||top.window.outerWidth\<screen.availWidth){  
top.window.outerHeight = screen.availHeight;  
top.window.outerWidth = screen.availWidth;  
}  
}  
window.moveTo(0,0);

var win= null;  
function NewWindow(mypage,myname,w,h,scroll){  
var winl = (screen.width-w)/2;  
var wint = (screen.height-h)/2;  
var settings =‘height=’+h+’,’;  
settings +=‘width=’+w+’,’;  
settings +=‘top=’+wint+’,’;  
settings +=‘left=’+winl+’,’;  
settings +=‘scrollbars=’+scroll+’,’;  
settings +=‘resizable=no’;  
win=window.open(mypage,myname,settings);  
if(parseInt(navigator.appVersion) \>= 4){win.window.focus();}  
}  
//–\>  
\</SCRIPT\>

\<META content=“MSHTML 6.00.2800.1400” name=GENERATOR\>\</HEAD\>  
\<body bgcolor="#011521" text="#000000" link="#000080" vlink="#800080" alink="#ff0000" leftmargin=“0” marginwidth=“0” topmargin=“0” marginheight=“0”\>  
\<DIV align=center\>  
\<TABLE height=“100%” cellSpacing=0 cellPadding=0 width=“100%” border=0\>  
\<TR\>  
\<TD\>  
\<DIV align=center\>  
\<TABLE height=360 cellSpacing=0 cellPadding=0 width=“100%” border=0\>  
\<TR\>  
\<TD width=985\>  
\<DIV align=right\>\<IMG height=360 src="left.jpg"  
width=“100%”\>\</DIV\>\</TD\>  
\<TD align=left width=20\>  
\<DIV align=right\>\<IMG height=360  
src=“center.jpg” width=374 useMap=#Map3  
border=0\>\</DIV\>\</TD\>  
\<TD align=left width=875\>  
\<DIV align=left\>\<IMG height=360 src="right.jpg"  
width=“100%”\>\</DIV\>\</TD\>\</TR\>\</TABLE\>\</DIV\>\</TD\>\</TR\>\</TABLE\>\</DIV\>  
\<MAP name=Map\>\<AREA onfocus=if(this.blur)this.blur()  
onclick=“NewWindow(this.href,‘LWL’,‘1200’,‘830’,‘no’);return false” shape=RECT  
coords=2,291,31,305 href=“index.swf”\>\</MAP\>\<MAP  
name=Map2\>\<AREA shape=RECT target=\_blank coords=139,337,198,385  
href=“[http://www.macromedia.com/shockwave/download/index.cgi?P1\_Prod\_Version=ShockwaveFlash](http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash)”\>\</MAP\>\<MAP  
name=Map3\>\<AREA onfocus=if(this.blur)this.blur()  
onclick=“NewWindow(this.href,‘LWL’,‘1200’,‘830’,‘no’);return false” shape=RECT  
coords=143,279,182,300 href=“index.swf”\>\<AREA  
shape=RECT target=\_blank coords=310,327,369,348  
href=“[http://www.macromedia.com/shockwave/download/index.cgi?P1\_Prod\_Version=ShockwaveFlash](http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash)”\>\</MAP\>  
\</BODY\>  
\</HTML\>

any thing i can do with HTML to define the title of the pop-up?  
many thanks again.

---

<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:** [September 10, 2004, 4:29am UTC](https://forum.kirupa.com/t/how-to-define-a-movie-title-on-popup-window/63786/6 "2004-09-10T04:29:48Z")

</div>

What name shows up now with that code?

:hr:

---

<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:** [September 10, 2004, 6:16am UTC](https://forum.kirupa.com/t/how-to-define-a-movie-title-on-popup-window/63786/7 "2004-09-10T06:16:26Z")

</div>

> [@lunatic](#):
>
> What name shows up now with that code?
> 
> :hr:

hi lunatic.

well, same as the previous one, the full web path where i store the .swf. any suggestion?

wheel

---

<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:** [September 10, 2004, 2:14pm UTC](https://forum.kirupa.com/t/how-to-define-a-movie-title-on-popup-window/63786/8 "2004-09-10T14:14:34Z")

</div>

Well I’m not too great with html and I know nothing of Javascript. But a couple of things stick out at me.

win=window.open(mypage,myname,settings);

and

onclick="NewWindow(this.href,‘LWL’,‘1200’,‘830’,‘no’)

For the first it seems like its ready to accept a variable myname. I assume you can set that somewhere.

For the second it looks like NewWindow is being created with a bunch of specific parameters. Seems like a window title could also be specified in there.

But I don’t know where to put additional code - sorry ☹ Maybe try posting that code in another forum topic - the Clientside one for html and JS etc.

:hr:

---

<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:** [September 10, 2004, 3:19pm UTC](https://forum.kirupa.com/t/how-to-define-a-movie-title-on-popup-window/63786/9 "2004-09-10T15:19:11Z")

</div>

thanks Lunatic.

actually, i spent quite a long time on those 2 lines too but nothing worked at all. and i will keep trying.  
thanks again.

wheel

---

<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:** [September 10, 2004, 4:10pm UTC](https://forum.kirupa.com/t/how-to-define-a-movie-title-on-popup-window/63786/10 "2004-09-10T16:10:24Z")

</div>

Yeah, sorry I couldn’t help you on this one. Try posting it in the Clientside forum and I bet someone there can help you lickety split.

:hr:
