Accessing Html Document Content in other Frames

Posted by: Rick Strahls WebLog, on 07 Jan 2009 | View original | Bookmarked: 0 time(s)

Heres a question that I see pop up quite frequently on newsgroups: How do I access content across frames or an iFrame using JavaScript code? Its actually quite easy once you understand how the windowing mechanism in the browser works. Imagine you have two pages one that holds an iFrame and another that holds the content for the iFrame. Both the host page and the iFrame contain a <div id=message> tag that is used to write some content into the other frame. Heres the top level page:      ...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: JavaScript | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1095 | Hits: 109

Similar Posts

  • Rich Tooltips With jQuery more
  • Canvas gets a Spark more
  • WebAii Testing Framework: From HTML to XAML and Back -- RadHtmlPlaceholder more
  • How to create a DropDownList with ASP.NET MVC more
  • Silverlight Twitter Client with authentication more
  • Export Word documents to XPS - Open XML Paper Specification format more
  • Url.Action() and RouteValue Encoding more
  • Export Word to PDF docs compliant to PDF/A-1b via Aspose.Words more
  • TipJar: Title Tags and Master Pages more
  • Programmatically Importing SharePoint Reusable Content more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD