Results 1 to 6 of 6

Thread: If #onClick=windowopen..What will close pop up??
      
   

  1. #1
    dougnez's Avatar
    dougnez is offline Brigadier General
    Join Date
    Aug 2006
    Location
    Midwest USA
    Posts
    1,769

    Question If #onClick=windowopen..What will close pop up??

    Hi.. I have seen plenty of ways to create a pop up.. but what simple script will close a pop up... Thanks Doug

  2. #2
    Bethers's Avatar
    Bethers is offline Major General & Forum Moderator
    Join Date
    Feb 2006
    Posts
    5,232

    Default Re: If #onClick=windowopen..What will close pop up??

    It depends on what script you use to open it as to which you use to close it - but you'll find lots of them if you google it - here's one easy one -
    http://www.javascript-coder.com/wind...ow-close.phtml

    If you are using the onclick method- here's the onclick close - insert this in the body of the page:

    <form>
    <input type="button" value="Close Window" onClick="window.close()">
    </form>

    or

    <a href="javascript:window.close()">Close Window</a>

    First gives you a button to click on - second is text.

  3. #3
    dougnez's Avatar
    dougnez is offline Brigadier General
    Join Date
    Aug 2006
    Location
    Midwest USA
    Posts
    1,769

    Talking Re: If #onClick=windowopen..What will close pop up??

    Bethers... You're the best I have been searching for a "close" pop up script and messing with java script for quite a while... I have a question though about the java script.. I guess I should use the Java tool to enter it... but where to enter into the java tool.. properties?? or some where else... All this time I have had very little luck inserting such script in java... Thanks again... Doug

  4. #4
    dougnez's Avatar
    dougnez is offline Brigadier General
    Join Date
    Aug 2006
    Location
    Midwest USA
    Posts
    1,769

    Wink Re: If #onClick=windowopen..What will close pop up??

    And one more thing if you please Bethers... I sure would like to utilize a transparent shape as the button ... like an overlay... any Ideas for me... Thanks Doug

  5. #5
    Join Date
    Mar 2006
    Location
    Mallorca, Spain
    Posts
    6,313

  6. #6
    Bethers's Avatar
    Bethers is offline Major General & Forum Moderator
    Join Date
    Feb 2006
    Posts
    5,232

    Default Re: If #onClick=windowopen..What will close pop up??

    Without spending lots of time - to change the appearance of the button, you'd have to download an image you want to use - and you'd have to add that image into what's called up by the statement calling for the button.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49