Forums

Disable / Remove "Close this Window" button?

Last post 05-22-2008, 11:22 PM by DC_jjackson. 4 replies.
Sort Posts: Previous Next

     05-13-2008, 4:22 PM 10890

    Disable / Remove "Close this Window" button?

    I have implemented an ajax lightwindow to work around pop-up blocking issues with users browsers when clicking on weblink links on our site. 

    So basically instead of the user clicking on a link that goes to a form or registration that opens in a pop-up, the weblink form appears in an iframe which floats above the page within the same browser window. 

    This method has been great during testing of our new site however at the end of many registrations and forms the user is presented with a button to "Close this Window". The code for this button is:

    <INPUT onclick="window.close()" id="btnConfirm" CLASS="inputbutton" TYPE="button" VALUE="Close Window"> 

    For our implementation this button serves no purpose as we have our own close link at the top of the lightbox window. It would be great if we could remove it or have some ability to edit the button's value.

    Anybody? 


    | Filed under: , ,

     05-13-2008, 4:48 PM 10892 in reply to 10890

    Re: Disable / Remove "Close this Window" button?

    You can probably just hide it in the css. The button should have a unique id or class. So you could add to your css something like:

    button #uniqueId {visibility: hidden;}

     Just a thought.

     
     

     05-13-2008, 5:12 PM 10894 in reply to 10892

    Re: Disable / Remove "Close this Window" button?

    ahem... you my friend rock.

    that should work. always the simplest thing but naturally not the solution I thought of in my tiredness.

    gonna give it a try. thanks! 

     05-22-2008, 3:15 PM 11031 in reply to 10894

    Re: Disable / Remove "Close this Window" button?

    So did that work?  We were thinking of doing a similar implementation here.
    Justin Graves
    IT HelpDesk Supervisor
    Mariner Church
    Irvine, California

     05-22-2008, 11:22 PM 11038 in reply to 11031

    Re: Disable / Remove "Close this Window" button?

    #btnConfirm
    {
    visibility:hidden
    }

     will hide the close window button on the screen.

     Jeremy Jackson

View as RSS news feed in XML