JAVASCRIPT POPUP WINDOWS
REV 4: December 2004

 

PopTool Example (800x450)

 

Source/Downloads
  • parseform.js (4k)
  • parseform.html (4k)
  • parseform.zip (4k)
  • In General: This page demonstrates a kinder and gentler method of generating javascript popup windows.

    The core method, PopTool(), pops up targeted content in a new JavaScript defined canvas window for most user but leaves links accessible to non-javascript enabled browsers and well behaved for right-clickers.

    PopTool() can be called from multiple links, it can be hard-wired as an event handler for one or more document form controls and/or it can be called from a second page script.


    PopTool() takes one mandatory parameter, a URI specifying the location of the file to be opened in the new window, which in this example is the HREF of the anchor link calling the function (this.href)

    <a onclick="return PopTool(this.href)" 
       href="eg2.html">
       PopTool Example (default)
    </a>
    

    PopTool() takes two optional parameters width and height where: width is an integer representing the window's width in pixels; and height is an integer representing the windows heigth in pixels

    <a onclick="return PopTool(this,800,400)" 
       href="eg2.html">
       Pop Example (800x400)
    </a>
    
    <button onclick="AutoPop("example.html",800,400)">
    AutoPop Example
    </a>
    

     

     

    < CODEBASE | TOP^ | MAINPAGE >

    Text & Design By Tony Pisarra
    © SophiaKnows 1998-2004