joelloh2002 Posted August 10, 2006 Share Posted August 10, 2006 Hello, i search 1 day in google, but i can find a solution for my problem...., i need help urgent! i got a picture in my iframe, if u click on that picture, it will link to the URL webpage. I don't want to open the link inside the the iframe, i want it to open full screen. Can somebody help me?Thanks. Link to comment Share on other sites More sharing options...
Chandra.Vedantham@gmail.com Posted August 10, 2006 Share Posted August 10, 2006 Hi,Put the picture of IFrame in a anchor tag and set the target attribute of the anchor tag to "_parent". THis should work. <a href="http://w3schools.invisionzone.com" target="_parent"><img src="<YOUR IMAGE PATH"/> </a> But are you using iframe only to show the picture or is there any other content.If it is being used to show the pciture then there is no point using the iframe you can use the img straight away inyour web Page. Link to comment Share on other sites More sharing options...
joelloh2002 Posted August 10, 2006 Author Share Posted August 10, 2006 Hi,Put the picture of IFrame in a anchor tag and set the target attribute of the anchor tag to "_parent". THis should work.<a href="http://w3schools.invisionzone.com" target="_parent"><img src="<YOUR IMAGE PATH"/> </a> But are you using iframe only to show the picture or is there any other content.If it is being used to show the pciture then there is no point using the iframe you can use the img straight away inyour web Page. Chandu..., u can see my example.. http://www.tipfun.com/nuffnang/pull.php , it is a link, but u click it, the new url open the webpage in the same iframe! .... i want it to open it to full screen size. Link to comment Share on other sites More sharing options...
Reg Edit Posted August 10, 2006 Share Posted August 10, 2006 Chandu..., u can see my example.. http://www.tipfun.com/nuffnang/pull.php , it is a link, but u click it, the new url open the webpage in the same iframe! .... i want it to open it to full screen size.That's because your example has target="_top" and not target="_parent" which (as Chandu suggested) does what you are asking for. Link to comment Share on other sites More sharing options...
Reg Edit Posted August 10, 2006 Share Posted August 10, 2006 Jumped to wrong conclusion in my previous post: the problem is within the page that is the iframe target. It is the link in there that needs to specify target="_parent". So it looks as though you need to change <a href="http://www.tipfun.com" to <a href="http://www.tipfun.com" target="_parent" Link to comment Share on other sites More sharing options...
joelloh2002 Posted August 10, 2006 Author Share Posted August 10, 2006 hello, As u can see, i already change it...<IFRAME NAME="Frame2" SRC="http://www.tipfun.com/nuffnang/pic.php" ALLOWTRANSPARENCY="true" frameBorder=0 target="_parent" width=160 height=600 scrolling=no></IFRAME>but, stiil open the new link in iframe (test it - http://www.tipfun.com/nuffnang/pull.php)...., pls help me. Link to comment Share on other sites More sharing options...
Chandra.Vedantham@gmail.com Posted August 10, 2006 Share Posted August 10, 2006 Hi,I have clicked on the "CLick Here" link and also on the Image, both of which are taking me to the required page which opens in the same window.What the problem you are talking about?Can you explain?Hi,I have clicked on the "CLick Here" link and also on the Image, both of which are taking me to the required page which opens in the same window.What the problem you are talking about?Can you explain? Link to comment Share on other sites More sharing options...
Reg Edit Posted August 10, 2006 Share Posted August 10, 2006 Works fine for me too, now you've made the changes. Opens in full window when I click the image. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now