Take the 2-minute tour ×

I use avgrund jquery element for legal disclaimer, before I move the user to another blank page. But I need to close the avgrund before I pop up the new window. I couldn't find a way to close the avgrund from outside function. Does anybody know how to do it?

share|improve this question
can you just call CloseDialog() ? –  box86rowh Dec 7 '13 at 23:54

3 Answers 3

Try using

share|improve this answer

There's no direct way that I can see (this API is weird), but if you call it with closeByDocument: true (the default), you can trigger a click on the overlay element it creates:

share|improve this answer

You can do the following

function closeDialog() {

Check out the source here: https://github.com/hakimel/Avgrund/blob/master/index.html

share|improve this answer

Your Answer


