Forum Moderators: open
I have 2 pages A and B, page B is a iframe page and no dont contain anything else. in page A i have 2 links one goes to google.com and the other to yahoo.com
How can i manage to open these links in the iframe. So if someone click on page A at the link "google" to direct him in the page B and open the link ( google.com ) in the iframe.
If someone else go to click on page A at the link "yahoo" to direct him in page B and open the link (yahoo.com ) in the iframe.
Is that possible? i have search everywhere and i couldnt find any answer.
Any help is much appreciated...
<iframe name="pageB" ></iframe>
<a href="http://google.com" target="pageB">google</a>
<a href="http://yahoo.com" target="pageB">yahoo</a>
This will not work for sites that contain frame busting code.
to move in ANOTHER page of my website and open the links in the iframe
So regardless of which link you press ( google or yahoo ) you wish to go a new page, say pageA.html. pageA.html is to contain an iframe sourced from the selected search engine ?
Use links something like
<a href="/pageA.html?search=google" >google</a>
<a href="/pageA.html?search=yahoo" >yahoo</a>
If you have php or other smart server use to set the iframe src according to "search". Else server will probably serve up pageA and javascript can set iframe src according to "search"