Customised New Window...

liunx

Guest
I'm making a link which will open a new window, but I want to open the new window only have the title at the top (and obviously minimise, maximise and close buttons top right). <br />
<br />
What I don't want it to have is the address bar, menus at the top and the bar at the bottom - ie. just a framed window with minimise, maximise and close.<br />
<br />
These windows are going to be accessing external pages and I want to, basically keep the pages anonymous.<br />
<br />
Thanks for your help!<br />
<br />
Rob<!--content-->as you probably know, the basic syntax is like this:<br />
window.open("page.html", "winName", "parameters")<br />
your parameters can be<br />
toolbar<br />
menubar<br />
scrollbars<br />
resizable<br />
location<br />
directories<br />
status<br />
<br />
size of the window also goes into the parameters.<br />
so all you have to do in your parameters is to say:<br />
toolbar=no, menubar=no, etc<br />
<br />
HTH<!--content-->Nice one - thanks very much!<!--content-->No I haven't got it.....<br />
<br />
Where does this code go? - it's not like this:<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"http://www.whatever.com/target.htm" target="_blank", toolbar=no, menubar=no,><img src="graphic.gif" width="137" height="98" border="0"></a><br />
<br />
And if I've several different links on each page, will the code open a featureless window for each?<br />
<br />
Sorry to be a hassle!<!--content-->originaly posted by Legwon<br />
try this....<br />
<br />
....HEAD...<br />
<SCRIPT LANGUAGE="JavaScript" type="text/javascript"><br />
<!-- Begin<br />
function url() {<br />
hidden = open('PIC OR PAGE NAME','NewWindow','top=?,left=?,width=?,height=?,status=YES OR NO,resizable=YES OR NO,scrollbars=YES OR NO');<br />
}<br />
// End --><br />
<br />
....BODY....<br />
<a href=http://www.htmlforums.com/archive/index.php/"javascript:url()">LINK HERE</a><br />
<br />
<br />
from <!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=21951">http://www.htmlforums.com/showthread.ph ... adid=21951</a><!-- m --><br />
<br />
HTH<!--content-->Ok, maybe I'm just being very dense, or I'm not making myself clear. I've got say 3 graphics on a page - all of them have links pointing to different pages outside of the main site. <br />
<br />
Just to have these opening up normally I'd use:<br />
<br />
<body><br />
<p><a href=http://www.htmlforums.com/archive/index.php/"http://www.msn.com" target="_blank"><img src="image01.gif" width="167" height="29" border="0"></a> <br />
</p><br />
<p><a href=http://www.htmlforums.com/archive/index.php/"http://www.htmlforums.com" target="_blank"><img src="image02.gif" width="167" height="29" border="0"></a> <br />
</p><br />
<p><a href=http://www.htmlforums.com/archive/index.php/"http://www.htmlforums.com" target="_blank"><img src="image03.gif" width="167" height="29" border="0"></a> <br />
</p><br />
</body><br />
<br />
I want them to open up in blank, featureless windows (especially no address bar or status) and because they are all external pages I cannot use a unified piece of javasript as above...... <br />
<br />
Please help me.......I'm getting very confused!<!--content--><a href=http://www.htmlforums.com/archive/index.php/"javascript:window.open('pageorurl.htm','nameit','width=200,height=200,directories=no,location=no,men ubar=no,scrollbars=yes,status=no,toolbar=no,resizable=no');"><img src=http://www.htmlforums.com/archive/index.php/"yourimage.gif"></a><br />
<br />
Try that?!<!--content-->Nice One Karinne!!! That successfully opens up the window, however the original window turns blanks and has [object] instead of staying with the original page- any ideas?<!--content-->hmmmmm.... I have no idea!!? I just searched google for "javascript pop-up" and copied the code from one of the many sites!<!--content-->robbie,<br />
please post your code sample<!--content-->This is the code as it stands at the moment - the new window opens fine, but the original window needs to stay the same......<br />
<br />
<html><br />
<head><br />
<title>Sample code</title><br />
</head><br />
<br />
<body><br />
<a href=http://www.htmlforums.com/archive/index.php/"javascript:window.open('http://www.htmlforums.com','htmlforums','width=800,height=600,directories=no,location=no,menubar=no,scrollb ars=yes,status=no,toolbar=yes,resizable=yes');"><img src=http://www.htmlforums.com/archive/index.php/"graphic.gif" width="137" height="98"></a> <br />
</body><br />
</html><br />
<br />
Cheer for any help.!<br />
<br />
Rob.<!--content-->
 
Back
Top