Monday 15 July 2013

html - Target to a page inside an iframe -


I will try to explain again:

There are 3 images in my index.html, when click I want to point out in ourmission.html, ourvalues.html and ourvision.html respectively. But these 3 pages are inside an iframe located on the page, which can be seen as our company below:

  & lt; Class = "sidebar" & gt; & Lt; H4 & gt; Our company & lt; / H4 & gt; & Lt; Ul class = "ANN-list primary pull-down" & gt; & Lt; Li & gt; & Lt; A href = "contactus.html" target = "conteudo" & gt; Contact us & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "usishment.html" target = "conteudo" & gt; Our Mission & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "ourvalues.html" target = "conteudo" & gt; Our Prices & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "ourvision.html" target = "conteudo" & gt; Our Vision & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / One side & gt; & Lt; Iframe src = "contactus.html" frameborder = '0' name = "conteudo" width = "700" height = "700" & gt; & Lt; / Iframe & gt;   

How can I direct them, so ourcompany.html page will be loaded with a special iframe opening.

I got a solution to add the following code to the code where iframe is located: < Pre> & lt; Script & gt; Window.onload = function loadIframe () {if (location.search.length> 0) {url = unescape (location.search.substring (1)) window.frames ["iframe-name"]. Location = url}} & lt; / Script & gt;

and using href:

  & lt; A href = "iframe-page.html? Specific- iframe.html" & gt;   

Thank you for everyone trying to help me.

No comments:

Post a Comment