Your Best Hosting
Solution

Keeping it Simple


  Main Menu
     Home Page
     About Us
     Hosting Plans
     Register Domains
     The Good Stuff
     Member Area
     Support Ticket
  Free Extras
     Free Domain Name
     RVSiteBuilder
     WebTraxEditor
     Tutorials
     And Much More
  Important Information
     90 Day Free Trial
     Our Guarantee
     F A Q
  Contact Information
     Contact Us
     Our Forum
  Site Map
     Site Map

Back to Previous Page






Centered Popup Window
What it's all about:

This script generates a popup window. The difference is that the formatting information for the new window is contained in the link. Therefore you can have multiple pop-up windows using the same script, each of which can be different depending on how you set the variables in the link.

How to install this script:
TWO STEPS TO INSTALL CENTERED POP-UP WINDOW:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document

STEP ONE: Paste this code into the HEAD of your HTML document

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
var win = null;
function newWindow(mypage,myname,w,h,features) {
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
if (winl < 0) winl = 0;
if (wint < 0) wint = 0;
var settings = 'height=' + h + ',';
settings += 'width=' + w + ',';
settings += 'top=' + wint + ',';
settings += 'left=' + winl + ',';
settings += features;
win = window.open(mypage,myname,settings);
win.window.focus();
}
// End -->
</script>

</HEAD>

STEP TWO: Copy this code into the BODY of your HTML document
<BODY>

<a href="#null" onClick="newWindow('http://example.com/','','650','250','resizable,scrollbars,status,toolbar')">Click Here</a>

<!--
Informational purposes only -
// Variables:

// 750 - width
// 450 - height
// resizable - window can be resized
// scrollbars - window displays the scrollbar on the right
// status - window displays the status bar at the bottom
// toolbar - window displays the toolbar at the top
// Note: href="#null" makes the link display as a link. Don't leave it out!
-->