This week's book giveaway is in the Testing forum.
We're giving away four copies of Practical Unit Testing with TestNG and Mockito and have Tomek Kaczanowski on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes frame problem .. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "frame problem .." Watch "frame problem .." New topic
Author

frame problem ..

Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
hi ,
i have page with 3 frames..
left frame, top frame and middle frame..
i have divided the middle frame into 2..
middletop and middlebottom, okey
on clicking the link on the middlebottom frame i want the next page to display in the full middleframe.. i know by setting

<base target="_parent">
in the middlebottom.jsp it will work, but i dont want to use this method in jsp file becoz im doing lot more things with that middlebottom.jsp file that will not work properly if set the target=_parent...
is there any other propety to diplay the second page in the full middle frame ???
thanks
raj


SCJP, SCWCD, SCBCD, Oracle Certified Professional (SQL n PL/SQL)
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 411
You can use target attribute on "A" tag:
<a target="_parent" href="newAddress">
or

<a on_click="self.parent.location.href='newAddress';" href="#">
 
IntelliJ Java IDE
 
subject: frame problem ..
 
Threads others viewed
setTimeout + parent frame
passing frame name as Target
Loading a page so that it takes over the entire browser size
target ="_BLANK" from java
onClick and openPage
developer file tools