UGN Security
Posted By: Moffesto link opening a popup - 08/16/02 01:36 AM
how can i make a link open a popup window, like if i made a link on my site labeled "links" and i want for it to open a popup when clicked, listing all the links. what would b the html tag for this action?
Posted By: Le4rner Re: link opening a popup - 08/16/02 02:14 AM
Probably want JavaScript not HTML for this one.

http://hotwired.lycos.com/webmonkey/programming/javascript/tutorials/tutorial1.html

I personaly never learned JavaScript. Just haven't wanted to yet I guess. Anyway that is supposed to be one of the best lessons on the net for it.
Posted By: SilentRage Re: link opening a popup - 08/16/02 01:18 PM
goodness gracious learner, the guy asks for a hamburger and you throw him a cow...

The all HTML way of making a popup window

<a href="http://www.yahoo.com" target="_blank">Go to Yahoo</a>

It's the Target field that does it. It specifies where to open the link in. You can use any of the following:

_blank = opens in a new blank window
_top = opens in the top window (break out of frames)
_parent = opens in the window/frame that owns the frame the link is in
_self = opens the link in the current window/frame (good for breaking out of predefined default targets)

While we're talking about default targets, you can specify a HTML tag like this:

<BASE Target="_blank">
Put that at the top of your HTML and it will make all links automatically open in new windows.

Oh, and target can also be the name of the window you wish to open it in. If the window name doesn't exist, it opens a new window with a new name of - whatever you specified.

Now, if you wanna little more power you can use a bit of javascript:

Code
<A HREF="#" onClick="javascript:window.open('http://www.yahoo.com','_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=300')">blah</A>
toolbar = yes | no | add/remove browsers toolbar
location = yes | no | add/remove browsers location field
directories = yes | no | add/remove browsers directories field
status = yes | no | add/remove browsers status field
menubar = yes | no | add/remove browsers menubar
scrollbars = yes | no | add/remove browsers scrollbars
resizeable = yes | no | allow new window to be resizable
width = value | window width in pixels
height = value | window height in pixels

There, ya get all this?
Posted By: psychogen Re: link opening a popup - 08/16/02 07:10 PM
heh
Posted By: Moffesto Re: link opening a popup - 08/16/02 08:42 PM
thanks SR, ill bookmark this and try it lata.
Posted By: budwurm Re: link opening a popup - 09/06/02 06:48 AM
any one know how to make a message forum, plz tell me

____________________________________
knowledg is power
power is freedom
Posted By: budwurm Re: link opening a popup - 09/06/02 06:50 AM
any one know how to make a pop up window with all of your links on it come up when some one enters your site
Posted By: Cold Sunn Re: link opening a popup - 09/09/02 08:27 PM
Quote:
Originally posted by budwurm:
any one know how to make a message forum, plz tell me
by message forum do you mean like this? If you wanted to make one, haha good luck man. If you want a forum, i suggest you use a free one. If you can install one on your site, i suggest phpBB, Invision Board, openBB, or something like that. If you need it hosted somewhere else, I suggest Novogate. Do searches for those names to find their official site, which will have a better description and also a forum so you know what they look like.

Quote:
Originally posted by budwurm:
any one know how to make a pop up window with all of your links on it come up when some one enters your site
I am not sure what you mean. If you mean have every link they click open in a new window, then you will probably have to add the code to each link. I have never tried this, so I am not sure. Also, except in some cases, this is really annoying so be careful.

Also, psychogen, haha, dude.

Edit: Novogate is not a free board, sorry, my mistake. Hyperboards I think it is, is free. It is good, but it has a popup on each page.
© UGN Security Forum