Forum Moderators: open
[edited by: tedster at 10:10 pm (utc) on May 30, 2011]
[edit reason] fixed the link [/edit]
passpage = document.URL
if (top.location == self.location)
location.replace("master.html?" + passpage)
In the above code, I insert my page name after the question mark.
<script>
passpage = document.URL
if (top.location == self.location)
location.replace("master.html?" + passpage)
</script>
<html>
<head>
<title>Master Frameset</title>
</head>
<script language="JavaScript" type="text/javascript">
origURL = parent.document.URL
contentURL = origURL.substring(origURL.indexOf('?')+1, origURL.length)
document.write('<frameset cols="20%,80%"><frame src="leftnav.html" name="nav"><frame src=\"' + contentURL + '\" name="content"><\/frameset>')
</script>
</html>
<script type="text/javascript"> if (top == self) { var parent_url = "main_frameset.html"; var orphan_url = self.location.href; var reframe_url = parent_url + "?" + orphan_url; location.href = reframe_url; } parent.navigation_frame.location.href="navigation_frame.html"; </script> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<!-- frames -->
<frameset cols="144,*" frameborder="0" border="0" framespacing="0">
<frame name="menu" src="menu.html" marginwidth="5" marginheight="5" scrolling="no" frameborder="no" framespacing="0">
<frameset rows="64,*">
<frame name="header" src="header.html" marginwidth="0" marginheight="0" scrolling="No" frameborder="no" noresize framespacing="0">
<frame name="splash" src="splash.html" marginwidth="20" marginheight="10" scrolling="Auto" frameborder="no" framespacing="0">
</frameset>
<noframes>
<body bgcolor="#F0F8FF">
Whatever desired for noframes
</body>
</noframes>
</frameset>
</html>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 12.0">
<meta name="keywords" content="www.#*$!#*$!#*$!#*$!x.org, #*$!#*$!#*$!">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>#*$!#*$!#*$!#*$!#*$!#*$!#*$!#*$!#*$!#*$!#*$!#*$!#*$!#*$!#*$!#*$!x</title>
</head>
<frameset cols="*" framespacing="0" border="0" frameborder="0">
<frameset rows="16%,*">
<frame name="rtop" target="rbottom" src="index1.html" scrolling="auto" noresize="noresize">
<frameset cols="*,81%">
<frame name="rbottom1" src="index2.html" target="rbottom" scrolling="auto">
<frame name="rbottom" src="welcome.html" target="_self" scrolling="auto">
</frameset>
</frameset>
<noframes>
<body>
</body>
</noframes>
</frameset>
</html>
<html>
<head>
<title>Master Frameset</title>
</head>
<script language="JavaScript" type="text/javascript">
origURL = parent.document.URL
contentURL = origURL.substring(origURL.indexOf('?')+1, origURL.length)
document.write('<frameset cols="*" framespacing="0" border="0" frameborder="0"><frameset rows="16%,*"><frame name="rtop" src="index1.html" scrolling="auto" noresize="noresize"><frameset cols="*,81%"><frame name="rbottom1" src="index2.html" scrolling="auto"><frame name="rbottom" src=\"' + contentURL + '\" scrolling="auto"></frameset></frameset><noframes><body>
</body></noframes></frameset>')
</script>
</html>
[edited by: tedster at 4:37 am (utc) on Jun 28, 2011]
<html>
<head>
<script language="JavaScript" type="text/javascript">
passpage = document.URL
if (top.location == self.location)
top.location.href="master.html?" + passpage
</script>
</head>
<body>
[whatever you need]
</body>
</html>
<html>
<head>
<meta name="robots" content="noindex">
</head>
<script language="JavaScript" type="text/javascript">
origURL = parent.document.URL
contentURL = origURL.substring(origURL.indexOf('?')+1, origURL.length)
document.write('<frameset cols="*" framespacing="0" border="0" frameborder="0"><frameset rows="16%,*"><frame name="rtop" src="index1.html" scrolling="auto" noresize="noresize"><frameset cols="*,81%"><frame name="rbottom1" src="index2.html" scrolling="auto"><frame name="rbottom" src=\"' + contentURL + '\" scrolling="auto"></frameset></frameset><noframes><body>
</body></noframes></frameset>')
</script>
</html>
thanks for telling me which editor I should use