Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load frameset and change the content frame

Status
Not open for further replies.
Joined
Feb 5, 2004
Messages
3
Location
US
from my home page I need to link to a frameset but change the contentframe html to different(specific) html pages other than what is define in the frameset?
 
I'm not exactly sure what you're asking, but if you want the linked frameset to be sourced to a dynamically changing HTML page, then you can send the name of that page as a parameter, read it at the frameset, and use document.write to include the value in the frameset tag.

Code:
<script>
document.write("<frame src='"+htmlSource+"'>");
</script>

Is that what you mean?

--Dave
 
Thanks Dave,

I was think about writing a function to call the frameset and then change the "contentframe" with a specific webpage not the default content page.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top