This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IFRAME

 
rudresh kumar
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI All,

I have two Iframes, one is the has the menu and other loads the menu contents based on selection of menu.

I would like to know how to fill the second Iframe from the URL(not by selection of Menu from first frame)

http://localhost/frame2/address.jsp (like this )

Kindly do the needful
THanks
Rudresh
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may set any URL programmatically using the src attribute of the iframe element, like this.

var iframe = document.getElementById("myIFrame");
iframe.src = "http://..."; //any url
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic