PDA

View Full Version : Navigation interface for iframe content


lukeprog
03-14-2003, 12:51 AM
This is actual for a compiled ebook (using HTML and JavaScript), not for a website. What I'd like to do is have an interface, in which sets an iframe. The iframe will contain the actual content page, and the parent page is the interface. I have a number of buttons (next page, previous page, back, forward, Home, About, Help) that will load various pages or perform various actions on the page within the iframe. This might be kind of a beginner question, but could someone help me figure out how to do this? Also, do I need my iframe in a frameset, or can I just add an <iframe></iframe> in the midst of my parent page code?

I can certainly send the code I have so far if you need clarification of the question - just email me at lukeprog@hotpop.com

Otherwise, if you could respond to this post, that would be great. I'm a lot better at Photoshop than I am with JavaScript, so if anyone wants to "trade" help on this problem with help on Photoshop, I'd be fine with that, too - anything to get this tricky problem figured out.

Thanks loads!

ACJavascript
03-14-2003, 03:04 PM
You can just place the iframe in the page yes..

you can access the iframe using javascript..

<script language="javascript">

function back(){

parent.iframesName.src=backPage.html //Whatever ya want for the page or function

}
</script>

<a href="javascript:back();">Back</a>


If ya need more info just let me know

ACJavascript@aol.com