How do I make a popup? Not the annoying ad kind that pop up automatically when you get to a page, but the kind that when you click on a link, instead of replacing the page you're currently at, or opening up in a whole new big browser window, you get a whole new tiny little popup window with specified dimensions and none of that menu junk at the top.
I know there has to be a fairly easy way to do it, and I tried looking at the source code of a few popups like that, but it... uh... didn't tell me anything.
Anyway, I use Dreamweaver, but Help isn't being very helpful, so I thought I'd ask here.
Help, please? 
TARGET = "_blank"
| Code: |
| <A HREF="newwindow.html" TARGET="_blank">a new window</A> |
Yeah, but that just opens a whole new big browser window thingy. How do I limit the size of the pop up and get rid of all the browser menu junk up at the top?
If you use Dreamweaver it's very easy to do!
It creates the javascript code automatically.
yeah u cn get scripts off the net aswell
Use the window.open() function in JavaScript.
| Code: |
oNewWindow = window.open( [sURL] [, sName] [, sFeatures] [, bReplace]);
|
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/open_0.asp
/hd
http://www.w3schools.com/js/tryit.asp?filename=tryjs_openallwindow
this link contains the source code for opening a window with specified appearance.
it's like the code above, only this might be easier for you
good luck
Thank you, Holadola, Nillis! That's just what I needed. 
I used to know how to do that. But why would you do it anyway. Studies have showed if you advertised with banners , you will get more visits and less people yelling at the webpage for the annoying popup. Plus, most people these days have a free software to block pop-ups. So it would not be worth it to make a pop up. If you still wan't to heres a javascript code that should work.
script language="javascript" type="text/javascript">
<!--
function popitup(url)
{
newwindow=window.open(url,'name','height=200,width=150');
if (window.focus) {newwindow.focus()}
return false;
}
// -->
</script>
Then, you link to it by:
<a href="popupex.html" onclick="return popitup('popupex.html')"
i am going to agree with jmanjman47. Pop ups are annoying no matter how they are used. Firefox blocks popups and so does IE once sp2 is installed. That takes care of most of the internet users. So popups should be avoided at all costs.
Yeah if you are even thinking of using popups use an iframe or a frame because when sites open up in popups I don't even bother visiting because I hate them so much.
s3nd got it just right;
another a link tag that comes to mind is "_top", but that doesn't usually open a new window i think, it just opens the link at the top level of the browser window, which only really matters when you're using Frames.
I'm not %100 sure, but wasn't IE looking at getting ride of the use of hiding the menus and all of that? Maybe I'm just crazy on that one.
Dynamic drive has a wizard for doing this stuff, here it is http://dynamicdrive.com/dynamicindex8/popwin.htm