PDA

View Full Version : Maximize Iframe


bobajob
03-29-2006, 10:56 AM
I have an I frame within a webpage which has a number of links to other websites in. I am looking to expand the iframe to cover the whole screen by one hyperlink.

I am using the following code "<a href="javascript:top.location.href=bottom.location.href">Remove frame</a>"

(bottom is replaced by the iframe name)

This works when the iframe is in the original state but once a link within the frame is opened (i.e to show an external site) an error occors.

Can anyone suggest another or ammendment to this code please??
TIA.