Open a Lightbox link in the parent page
Open a link in a Lightbox in the same page the Lightbox was started from
Question:
How can I have a link within a DMXzone Lightbox open in the parent page?
Answer:
A simple javascript function can be used to set the link from a DMXzone Lightbox to be opened in the parent page. Place the following code in the Head of your Lightbox page:
<script type="text/javascript">
function OpenInParent(url){
parent.parent.document.location = url;
}
</script>
Set the link on you Lightbox page as follows:
<a href="javascript:void(0);" onclick="OpenInParent('YourPage.html')">YourLinkText</a>
Comments
Be the first to write a comment
You must me logged in to write a comment.