FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Pop Ups





Olivia Wood
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. Embarassed

Anyway, I use Dreamweaver, but Help isn't being very helpful, so I thought I'd ask here.

Help, please? Confused
S3nd K3ys
TARGET = "_blank"

Code:
<A HREF="newwindow.html" TARGET="_blank">a new window</A>
Olivia Wood
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?
misterdimiz
If you use Dreamweaver it's very easy to do!
It creates the javascript code automatically.
Arcath
yeah u cn get scripts off the net aswell
holadola
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
Nillis
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
Olivia Wood
Thank you, Holadola, Nillis! That's just what I needed. Smile
jmanjman47
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')"
dazelmer
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.
Aki
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.
wrightbros
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.
a_dubDesign
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
nivinjoy
What all others have mentioned are really good ideas and scripts for creating popups. But just think that will these popups work if the user has installed or enable popup blocker in their browser..?

So in this context I would like to recommend you to make some popups in your website using Jquery scripts... These won't be blocked by a popup blocker and also it will give a professional look to your website.

Just try the following links:

http://webdesignersdesk.com/2010/05/create-custom-popup-model-window-with-jquery/

http://choosedaily.com/1178/15-jquery-popup-modal-dialog-plugins-tutorials/

Try the above ones especially the second link as it contains many links related to your query.
Related topics
Spying on the spyware makers
adcode help
domain
*OFFICIAL* Which Browser do you use?
IE 7 to take a cue from Firefox
... And the browser trophy goes to ...
Things that you MUST not SUGGEST -- READ BEFORE POSTING!
Welke pop-up blocker is het beste
pop ups, adds and viruses
para hacer mi pagina
Pop-Ups
How to stop IE pop-up blocker?
New Firefox Updates Stopping phpBB pop ups...
Crazy Pop ups in Chrome
Reply to topic    Frihost Forum Index -> Webmaster and Internet -> Design Tips

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.