Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Pop up window

  1. #1
    New to the CF scene
    Join Date
    Oct 2003
    Thanked 0 Times in 0 Posts

    Pop up window

    Im new to scripting, i have created a web page with 4 different links. I found a page that generates code to make pop up windows, however i want each link to open a different size, i pasted the same script 4 times but all the windows open to the same size, how can i do this orr is there a tutorial on how to use multiple scripts without them affecting each other

  • #2
    New Coder
    Join Date
    Jul 2003
    Thanked 0 Times in 0 Posts
    First, copy this in your <head> tag.

    <script type="text/javascript">
    function openWindow(url,h,w){

    Then put this link anywhere you want in your document. You can add more links by pasting this link multiple times. 400 is the height and 300 is the width, change them to what size you want the popup to be.

    <a href="http://" onclick="openWindow('http://','400','300');return false">Open window</a>


    Posting Permissions

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