SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Aug 2003
    Location
    Nr Leeds
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Simple Popup Window Help...

    Could you please help me out, please see the code below. At present, the window attributes are loaded from the popup.js file.

    _________________________________________________

    <script language="JavaScript" src="popup.js">

    </script>

    <script>

    window.onload=function(){
    new popUp(200, 100, 600, 550, "Brad", "CONTENT" "0066ff", "white", "#FFFFFF", "0066ff", "666666", true, true, true, true, false);
    }
    </script>

    <a href="javascript:showbox('Brad')">LINK TO POPUP</a>
    _________________________________________________

    - The :showbox relates to the attributes in the .js file.

    At present the window loads fine when the page is loaded, but i ONLY want it to be displayed when the link is clicked.

    I have tryed changing window.onload to onclick but it does not seam to work. I know its simple but cannot figure it out.

    Thanks

  2. #2
    SitePoint Zealot
    Join Date
    Aug 2003
    Location
    Nr Leeds
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bump


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •