Grow your CSS skills. Land your dream job.

How to open a submit button which is in fancybox in the parent window?

  • # April 26, 2012 at 3:31 pm

    Hi, I have a login form displaying in a fancybox window. It has a username and password fields and a login button. Upon successful login, I want the fancybox window to close and the user to be redirected to the user area in the parent window. At the moment it all works fine, however the user area page gets displayed in the fancybox window and like I mentioned above, I want it to be displayed in the parent window. Exactly like the login process on the csstricks website.

    Could anyone please help? your help would be much appreciated!

    # April 26, 2012 at 4:08 pm

    Is the form itself in an iFrame (not a DIV on the same page)? If that’s the case, try adding target="_parent" to the

    tag.

    # April 27, 2012 at 3:44 am

    Yes, it is in the iFrame and this was exactly what I was looking for! Thank you very much, you have no idea how long I was looking for the solution to this problem! :)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".