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
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 10 May 2013 Link to this post

    Hello,

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top