I know that I can use "_blank" to open another window when a link is clicked, but whenever a link inside that window is clicked, the resultant page is opened inside that same window (or another). How can I make it so that when a link is clicked inside the newly opened window, the window closes and the desired page comes up in the original main window? Does anybody know how this can be done?
Originally posted by Wallee How can I make it so that when a link is clicked inside the newly opened window, the window closes and the desired page comes up in the original main window? Does anybody know how this can be done? [/B]
You need to make the first page loaded in a frameset (you can have frameset with only 1 frame).
Then you specify a name for that frame, eg main.
Then you make your link in your new page target="main".
Originally posted by Dave Clark
I have never seen a target that is able to find a named frame that is not in the same browser window.
Take a peak at this code then for a new experience
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<frameset border="0"> <!-- border="0" is a bugfix for IE, NS as well as Opera -->
<frame name="main" src="initial.html" frameborder="0" marginwidth="1" marginheight="1" scrolling="auto" />
Frames are not working in your Browser.<br />
If you have Frames turned off, please turn it on to view this site.