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!
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
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
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
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.
Oh, you mean plain old HTML like this ?
<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
“onClick” is not part of the HTML standard. It’s a JavaScript event handler.
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.
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.
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.
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.
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.
Caught@Work nailed it exactly…Thats what I’m trying to do. Thanks to everyone who posted.
[rant]
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.)
[rant]
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.)
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.