View Full Version : Popup Windows
Hello, can anyone help having a link come up in a "popup" window? Right now, you click on the link and it takes you to another page to view a slide show. However, we would like it to come up in a popup window. Any help is appreciated! Thank you, LC
Nascency
07-07-2006, 05:32 PM
You may find this (http://javascript.internet.com/generators/popup-window.html) helpful.
Early Out
07-07-2006, 10:51 PM
If what you really want is a true popup window, this tutorial (http://www.faqs.org/docs/htmltut/linking/linking_famsupp_70.html) lays it all out for you.
On the other hand, if you just want a link to open in a new browser window, which isn't really a "popup," you can just use this HTML:
<a href="slideshow.html" target="_blank">Click here for the slide show</a>.
The key is the "target" argument. Here's the tutorial (http://www.faqs.org/docs/htmltut/linking/_A_TARGET.html) about the various ways you can use "target."
Thank you ....both of the suggestions were very helpful!!
liveevil
07-09-2006, 04:32 AM
in <head> </head>
<script language="javascript" type="text/javascript">
function popupcentre(adresse, nomFenetre, largeur, hauteur, scroll)
{
var largeurEcran = (screen.width - largeur) / 10;
var hauteurEcran = (screen.height - hauteur) / 10;
window.open(adresse, nomFenetre, 'height=' + hauteur + ', width=' + largeur + ', top=' + hauteurEcran + ', left=' + largeurEcran + ', scrollbars=' + scroll + ', resizable')
}
</script>
after, when you create link :
<a href="YOUR_PAGE" onclick="popupcentre(this.href, 'name', '500', '600', 'yes');return false;">
Mozilla anti popup don't block this popup.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.