detecting if popups have been disabled

2 posts, 0 answers
  1. mww
    mww avatar
    257 posts
    Member since:
    Sep 2012

    Posted 09 May 2013 Link to this post

    I have an enquiry form that I want to place in a popup window accessed from a link on my main page.  If a user has popups disabled this should stop the window from opening.  How can I detect if the window cant be opened and divert the user to a different page ?
  2. Marin Bratanov
    Marin Bratanov avatar
    5805 posts

    Posted 10 May 2013 Link to this post


    RadWindow is not blocked by popup blockers in the browser. If you find a way to perform this check (which, in my opinion, should not be available as it exposes information about the user's system) you can create a code library project that demonstrates the approach and we will gladly award your efforts with Telerik points. Once you can perform such a check you should simply add it before opening the RadWindow, something like if(popupsDisabled) window.location = theUrl; else radopen(theUrl);

    All the best,
    Marin Bratanov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top