Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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