File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes IFRAME Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "IFRAME" Watch "IFRAME" New topic
Author

IFRAME

rudresh kumar
Ranch Hand

Joined: Jan 04, 2006
Posts: 83
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

Joined: Aug 26, 2001
Posts: 7610
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


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IFRAME