Plug-in JavaScript Chapter 8, Example 69 (Click on the icon to view the source for copy and pasting)
» Run this code now (Right click and select Back to return from the example)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<html><head><title>Plug-in JavaScript: Example 69</title>

<script src="PJ.js"></script>


<div id='click'><u>Click me to raise the window</u></div>

<table id='window' bgcolor='lightblue' cellpadding='5'>
      <td id='header' width='310' align='center'>
         <font face='Arial'><b>In Browser Window</b></font>
      <td id='close' width='20' bgcolor='red' align='center'>
         <font face='Arial' color='white'><b>X</b></font>
      <td id='content' colspan='2' bgcolor='#eeeeee'>
         <img id='image' src='pijsmall.png' align='left' />
         <font face='Verdana' size='2'>
            JavaScript is the free language built into all modern 
            browsers and is the power behind dynamic HTML and the Ajax
            used for Web 2.0 websites. <br />&nbsp; &nbsp; Plug-in
            JavaScript is aimed squarely at people who have learned
            basic HTML (and perhaps a little CSS) but are interested
            in doing more. For more details please <a href=
            '' target='New'>visit the


window.onload = function()
   x = (GetWindowWidth()  - 330) / 2
   y = (GetWindowHeight() - 245) / 2

   S('window').border = 'solid 2px'
   Position('window', ABS)
   PopDown('window', 'fade', null, null, 1, false)
   Resize('window', 330, 245)
   S('window').overflow = 'hidden'

   S('click').cursor       = 'pointer'
   S('image').paddingRight = Px(10)
   S('content').border     = 'solid 1px'
   S('content').textAlign  = 'justify'

   O('click').onclick = function()
      BrowserWindow('window', 'header', 'close', x, y, true,
         'fade', null, null, 500, false)