Web Hosting Talk







View Full Version : simple html question


Ron
06-04-2001, 02:17 AM
I want to use the "a href" tag to open a url in a blank page. I know that you can use target=_blank to do this but is there a way to make the new page open in a smaller window size?

Some sites use small pop-up windows in the upper left hand corner of the screen. I want to know how to set the size for this as well as the placement of the page on the screen.

Also, can you tell me how to add a tag for closing the window when the visitor is finished reading it?

Naturally, I would like for this to work in both Netscape and Explorer.

-Edward-
06-04-2001, 02:44 AM
wouldnt thise work? -

http://yourdomain.com target=new size=400

I'm sure it would.

Ron
06-04-2001, 03:11 AM
That doesn't work. I tried it and all it does is open a page in a new window the same size as your browser. What I want is a pop-up, preferably a page with no browser buttons on the top.

Dogma
06-04-2001, 07:11 AM
Look @ this http://javascript.internet.com/generators/popup-window.html or search the internet for a free pop up maker.

Lawrence
06-04-2001, 08:19 AM
You'll have to use JavaScript for something like that (as far as I'm aware anyway). The link Dogma posted looks like a good one, so check that out!

determinist
06-04-2001, 08:33 AM
You mean you want it to open in a new full screen size?

(SH)Saeed
06-04-2001, 08:44 AM
to put it as simple as possible.. your tag should look something like this:

<a href="javascript:window.open('http://domain.com/', '', 'width=500,height=300')">