Specifying the Size of New Browser Window That Opens via Hyperlink

They have: 8 posts

Joined: Dec 1999

I am trying to do a page for one of my clients' web sites that has some information about a bunch of their distributors. They would like a smaller, specifically sized browser to pop up when people click on a hyperlink for each distributor. It's not a pop up window as far as I know. It's using the _blank tag, but we want it to be smaller than a full-sized browser.

You can see the page I'm talking about at: http://www.justmytype.net/ies/products.htm

I tried to write a script for it but it was a dismal failure much to my puzzlement. Can I specify the size of new browser windows through plain HTML? Or do I need a script to do this? If so, it seems it would be a pretty basic one-- can anyone tell me how to do this? Thank you.

Sincerely,
Andrea LaRosa

Visit Just My Type Designs at http://www.justmytype.net
Web
sites that make you money. Makeovers for websites that don't.

They have: 89 posts

Joined: Sep 1999

<script language="javascript"><!--
function pop()
{
window.open('http://blah.blah.blah/', config='height=500,width=675, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, directories=no, status=no')
}
//--></script>

<a href="javascript : pop()" >

This would work for a single link..with a little messing around you could make it pop open a variable I guess to whatever site is clicked. Anyway, replace the http: for whatever you want linked to and replace height and width with whatever you want. Oh and that other config stuff is up to whatever you want too.

[This message has been edited by RC (edited 02 May 2000).]

They have: 8 posts

Joined: Dec 1999

you wrote:
<<This would work for a single link..with a little messing around you could make it pop open a variable I guess to whatever site is clicked.>>

The problem is that there are other links on the page that I don't want to be in the pop up window. Also, a script for a single link isn't usable because there are 14 such links on the page This is basically the scriptI tried "messing around with" before and it simply didn't work. I'm at the end of my rope here.

Andrea

Visit Just My Type Designs at http://www.justmytype.net
Web
sites that make you money. Makeovers for websites that don't.

AndyB's picture

They have: 344 posts

Joined: Aug 1999

This in a script section

function winy(url) {
window.open(url,"msg","height=, etc, etc, etc)

and this for each link you need in a window

<a href="javascript:winy('page-x.htm')">click</a>

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

There is an amazingly complete listing at the following url that will answer ALL your questions (promise).
http://www.irt.org/articles/js205/index.htm

Happy pop-up windowing.

Suzanne

------------------
Zero Cattle
Suzanne
Tables DeMystified

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.