Linking the parent window

Page: 1

Author Post
decibel83
Guest
Hi.

I succesfully installed Floatbox on my website.
I'm using Floatbox to display an HTML page in the float window.
In that page there is a link wich opens another HTML page, but when I click on it it loads the page in the same float window.
I want the page to be loaded in the parent window when I click the link, and the float window needs to close itself.

How I can do this?

Thank you very much! Bye.
Administrator
Registered: Aug 2008
Posts: 3382
To immediately close floatbox and load a new page, the link inside the floatbox content would look something like this:
<a href="newPage.html" onclick="parent.location.href='newPage.html';return false;">click here</a>

If you want floatbox to animate out first, try something like:
<a href="newPage.html" onclick="parent.fb.loadPageOnClose='newPage.html';parent.fb.end();return false;">click here</a>
decibel83
Guest
I tried to insert your code, but it does not work... :-(
Administrator
Registered: Aug 2008
Posts: 3382
If you have an example of the problem online somewhere I'll take a look.
decibel83
Guest
Where I can send you an e-mail?
Administrator
Registered: Aug 2008
Posts: 3382
Through the contact form on my site.

Page: 1