Forum Moderators: open

Message Too Old, No Replies

? how to load frames if open in New Tab

         

laurus

2:22 pm on Mar 17, 2009 (gmt 0)

10+ Year Member



I made a page with top and bottom navigation frame but if I click to open link in New Tab the frames do not load, is it possible to autoload frames IF they are not loaded?

tedster

7:55 pm on Mar 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello laurus, and welcome to the forums.

If I understand your question correctly, you cannot do this with HTML alone, but you can with Javascript. See the thread handy, generic javascript coding [webmasterworld.com] and scroll down to the post FORCE MANY PAGES INTO FRAMES - with one simple script.

laurus

9:38 am on Mar 18, 2009 (gmt 0)

10+ Year Member



Thank you, i think this will solve my problem :)

laurus

8:04 am on Mar 19, 2009 (gmt 0)

10+ Year Member



hy, thank youfor putting me on the right way, i found an answer
in next lines of javaSCR:

in <head> of child named choice1.html i inserted:

<script language="JavaScript">
if (top == self) {document.location = "choice1_if_noframe.html"}
</script>

</head>

******************************************************************

and made a choice1_if_noframe.html framelist for opening the frames :

********************************************************************

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Shalom</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<frameset rows="116,*" cols="*" framespacing="0" frameborder="NO" border="0">
<frame src="frame2_hu.html" name="topFrame" scrolling="NO" noresize >
<frameset rows="*,57" cols="*" framespacing="0" frameborder="NO" border="0">
<frame src="choice1.html" name="mainFrame">
<frame src="frame3_hu.html" name="bottomFrame" scrolling="NO" noresize>
</frameset>
</frameset>
<noframes><body>

</body></noframes>
</html>
< by Lila>

*******************************************************************************