# HTML question

**URL:** https://boards.straightdope.com/t/html-question/127936
**Category:** Factual Questions
**Created:** [September 11, 2002, 6:06am UTC](https://boards.straightdope.com/t/html-question/127936 "2002-09-11T06:06:36Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![rayray5884](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@rayray5884](https://boards.straightdope.com/u/rayray5884)
#### Post date: [September 11, 2002, 6:06am UTC](https://boards.straightdope.com/t/html-question/127936/1 "2002-09-11T06:06:36Z")

</div>

I’ve seen it done before where if you click on a link and it opens a new window that new window will only have the title and menu bar but no buttons or address bar. I hope that makes sense. What is the script/tag to get it to just display the page and not the address and toolsbars in IE. Thanks in advance!

---

<div class="post-metadata">

### Author: ![Sam\_Stone](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Sam\_Stone](https://boards.straightdope.com/u/Sam_Stone)
#### Post date: [September 11, 2002, 6:28am UTC](https://boards.straightdope.com/t/html-question/127936/2 "2002-09-11T06:28:16Z")

</div>

In your link href, you want to put a call to a javascript function that calls window.open, setting the appropriate parameters.

Here’s a ‘popup window maker’ that you can use to auto-generate the javascript for you: [http://javascript.internet.com/generators/popup-window.html](http://javascript.internet.com/generators/popup-window.html)

---

<div class="post-metadata">

### Author: ![Sam\_Stone](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Sam\_Stone](https://boards.straightdope.com/u/Sam_Stone)
#### Post date: [September 11, 2002, 6:33am UTC](https://boards.straightdope.com/t/html-question/127936/3 "2002-09-11T06:33:23Z")

</div>

In your link href, you want to put a call to a javascript function that calls window.open, setting the appropriate parameters.

Here’s a ‘popup window maker’ that you can use to auto-generate the javascript for you: [http://javascript.internet.com/generators/popup-window.html](http://javascript.internet.com/generators/popup-window.html)

---

<div class="post-metadata">

### Author: ![Sam\_Stone](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Sam\_Stone](https://boards.straightdope.com/u/Sam_Stone)
#### Post date: [September 11, 2002, 6:39am UTC](https://boards.straightdope.com/t/html-question/127936/4 "2002-09-11T06:39:38Z")

</div>

In your link href, you want to put a call to a javascript function that calls window.open, setting the appropriate parameters.

Here’s a ‘popup window maker’ that you can use to auto-generate the javascript for you: [http://javascript.internet.com/generators/popup-window.html](http://javascript.internet.com/generators/popup-window.html)

---

<div class="post-metadata">

### Author: ![Crusoe](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@Crusoe](https://boards.straightdope.com/u/Crusoe)
#### Post date: [September 11, 2002, 7:46am UTC](https://boards.straightdope.com/t/html-question/127936/5 "2002-09-11T07:46:42Z")

</div>

Yep, **Sam Stone** has it. This has been asked and answered before and unfortunately (or fortunately, if like me you like retaining control of your browser) there is no way to force this behaviour in plain old HTML.

---

<div class="post-metadata">

### Author: ![Caught\_Work](https://avatars.discourse-cdn.com/v4/letter/c/919ad9/32.png) [@Caught\_Work](https://boards.straightdope.com/u/Caught_Work)
#### Post date: [September 11, 2002, 10:54am UTC](https://boards.straightdope.com/t/html-question/127936/6 "2002-09-11T10:54:53Z")

</div>

Oh, you mean plain old HTML like this ?

```auto

<a onClick="MyWindow=window.open('YOUR IMAGE NAME HERE','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=YOURWIDTH,height=YOURHEIGHT,left=100,top=10');false;"><img border="2" src="YOUR THUMB IMAGE NAME HERE" alt="YOUR ALT TEXT HERE" width="THUMBWIDTH" height="THUMBHEIGHT"></a>

```

You can check this out at:  
[www.caughtatwork.net](http://www.caughtatwork.net/things/newwindow.html)

---

<div class="post-metadata">

### Author: ![Crusoe](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@Crusoe](https://boards.straightdope.com/u/Crusoe)
#### Post date: [September 11, 2002, 11:07am UTC](https://boards.straightdope.com/t/html-question/127936/7 "2002-09-11T11:07:02Z")

</div>

“onClick” is not part of the HTML standard. It’s a JavaScript event handler.

---

<div class="post-metadata">

### Author: ![CurtC](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@CurtC](https://boards.straightdope.com/u/CurtC)
#### Post date: [September 11, 2002, 5:16pm UTC](https://boards.straightdope.com/t/html-question/127936/8 "2002-09-11T17:16:43Z")

</div>

I think “plain old HTML” was a joke.

And like Crusoe, I consider a window opening without all the controls to be rude behavior on the part of the web site. Also, why do you need a popup at all? Many of us block pop-ups.

---

<div class="post-metadata">

### Author: ![ZipperJJ](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/zipperjj/32/211_2.png) [@ZipperJJ](https://boards.straightdope.com/u/ZipperJJ)
#### Post date: [September 11, 2002, 5:46pm UTC](https://boards.straightdope.com/t/html-question/127936/9 "2002-09-11T17:46:16Z")

</div>

**CurtC** why is making a popup rude? What if you are filling out a form and need to click on a help link? Surely you don’t want to go away from the form to see help and have to come back and re-fill out your info.

As for not having controls, you can always right-click and open a link in a new window. Leaving out the large buttons, address bar, scrollbars and such helps maximize the space which is otherwise wasted on stuff that you probably don’t need.

---

<div class="post-metadata">

### Author: ![Crusoe](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@Crusoe](https://boards.straightdope.com/u/Crusoe)
#### Post date: [September 11, 2002, 10:22pm UTC](https://boards.straightdope.com/t/html-question/127936/10 "2002-09-11T22:22:10Z")

</div>

Making a pop-up is rude because it’s not what I expect and it either removes my control over that window or opens a window when I did not expect one.

---

<div class="post-metadata">

### Author: ![Caught\_Work](https://avatars.discourse-cdn.com/v4/letter/c/919ad9/32.png) [@Caught\_Work](https://boards.straightdope.com/u/Caught_Work)
#### Post date: [September 11, 2002, 11:16pm UTC](https://boards.straightdope.com/t/html-question/127936/11 "2002-09-11T23:16:18Z")

</div>

Sorry for my sarcasm, I got a little carried away.

Even though OnClick is not part of the HTML standard, it still gets away with the end result without having a defined \<script\>\</script\>.

I use a pop-up for the following 1 reason.  
As a view to photgraphs.  
You click the thumb, a new window appears with the pic nicely placed.  
You click the next thumb (back on the min page), the new window is REUSED (so I’m not adding more and more pop-ups) to view the next picture and the pop-up is focussed so it comes back to the front.  
Continue.  
It saves people click, back, click, back, etc. They only have to click the thumb to keep going. And when they’ve finished (after 30 seconds or so without a refresh), I’ll close the pop-up, so you don’t even need to close if yourself.  
Naturally I keep the pop-up positioned on the screen so it avoids obstructing the view of the rest of the thumbs, so you don’t have to move the pop-up to see the rest of the images.  
I think it’s OK in this instance AND I warn the viewer what will happen.

---

<div class="post-metadata">

### Author: ![black\_rabbit](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@black\_rabbit](https://boards.straightdope.com/u/black_rabbit)
#### Post date: [September 11, 2002, 11:21pm UTC](https://boards.straightdope.com/t/html-question/127936/12 "2002-09-11T23:21:43Z")

</div>

Popups, when used in moderation, aren’t particularly rude at all. I use them all the time for stuff (text, forms, pics) that aren’t necessarily relevant to the page but aren’t large enough to merit a screen-sized window of their own.

Of course, the advertisers ruined it for the rest of us, but still.

---

<div class="post-metadata">

### Author: ![rayray5884](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@rayray5884](https://boards.straightdope.com/u/rayray5884)
#### Post date: [September 12, 2002, 4:37am UTC](https://boards.straightdope.com/t/html-question/127936/13 "2002-09-12T04:37:03Z")

</div>

Caught@Work nailed it exactly…Thats what I’m trying to do. Thanks to everyone who posted.

---

<div class="post-metadata">

### Author: ![rjk](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@rjk](https://boards.straightdope.com/u/rjk)
#### Post date: [September 12, 2002, 4:51am UTC](https://boards.straightdope.com/t/html-question/127936/14 "2002-09-12T04:51:03Z")

</div>

[rant]

> [@](#):
>
> What is the script/tag to get it to just display the page and not the address and toolsbars **in IE**.

Please make that “ **in a Web browser** ”. There are more browsers than IE!  
[/rant]

(I realize the JavaScript examples above work just about anywhere, but I didn’t like the question. Nothing personal.)

---

<div class="post-metadata">

### Author: ![rjk](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@rjk](https://boards.straightdope.com/u/rjk)
#### Post date: [September 12, 2002, 4:59am UTC](https://boards.straightdope.com/t/html-question/127936/15 "2002-09-12T04:59:23Z")

</div>

[rant]

> [@](#):
>
> What is the script/tag to get it to just display the page and not the address and toolsbars **in IE**.

Please make that “ **in a Web browser** ”. There are more browsers than IE!  
[/rant]

(I realize the JavaScript examples above work just about anywhere, but I didn’t like the question. Nothing personal.)

---

<div class="post-metadata">

### Author: ![Crusoe](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@Crusoe](https://boards.straightdope.com/u/Crusoe)
#### Post date: [September 12, 2002, 7:40am UTC](https://boards.straightdope.com/t/html-question/127936/16 "2002-09-12T07:40:43Z")

</div>

No worries **Caught@Work** , sorry for being snappy in return.

I understand that pop-ups have valid uses, but without context in the OP I wasn’t sure what these pop-ups would be used for. Photo blow-ups and secure banking set-ups are probably the two times I’m happiest to see toolbar-less pop-ups used.
