JavaScript Popup Window Generator

Monday 7th February 2005 09:26:00 AM

Create javascript popup windows easily and efficiently using this generator. Insert the following code in the head section of your html page, it might be better to have it as an external file.

The beauty of this script is that you do not need to modify the script in any way as the variables are called with each link making the popup unique. You are also able to open the popup in a new window as the url is in the href section (preventing any dead links) and therefore allowing search engines to crawl the page.

<script language="javascript" type="text/javascript"><!--
// http://www.toseef.com/200502-javascript-popup-window-generator
function toseef_loadwin(f,n,t,l,d,s,m,b,r,w,h,p,e)
{
if(p==""){p=(screen.height-h)/2;}
if(e==""){e=(screen.width-w)/2;}
var toseef_loadwin=window.open(""+f+"", ""+n+"", "toolbar="+t+", location="+l+", directories="+d+", status="+s+", menubar="+m+", scrollbars="+b+", resizable="+r+", width="+w+", height="+h+", top="+p+", left="+e+""); toseef_loadwin.focus();
}
//--></script>


Variables that will be associated with your link:



Code


Posted by Piniyini in Javascript

<< Dry as a bone   Toseef's Blog   CSS Colored Scrollbar Generator >>

Search

Feeds (Subscribe via Google Reader)
blog posts feed Blog Posts
recent comments feed Recent Comments

Archives
2012  Mar
2011  Sep  Oct
2010  Feb
2009  Jan  Mar  Apr  May  Jun  Jul  Oct  Nov
2008  Jan  Feb  Apr  May  Jul  Oct  Nov  Dec
2007  Jan  Feb  Mar  Apr  May  Jun  Jul  Aug  Sep  Oct  Nov  Dec
2006  Jan  Feb  Mar  May  Jun  Jul  Aug  Sep  Oct  Nov  Dec
2005  Jan  Feb  Mar  Apr  May  Jun  Jul  Aug  Sep  Oct  Nov  Dec
2004  Aug  Sep  Nov  Dec
Recent Comments
Check out my Blog Roll
/Javascript

Says thanks to the following poeple for recently leaving a comment ...

Meblibel
Xbox 360 Repair
Nike Free Shoes
Design A Logo
World Baseball Umpire Videos
Snapback Hats
Assignment Help
Small Business Marketing Servi
Pay To Write A Dissertation
Pay Someone To Write My Disser
Assignment-help
Masters Dissertation Topics
Gdc
Chapel Hill News
Mba Dissertation Ideas