php frameset
php frameset
- Started
- Last post
- 3 Responses
- meffid
This doesn't work in FF but does in Safari. Can anyone advise why?
<html>
<head>
<title>Title</title><!-->incase they have javascript turned off<!-->
<script type="text/javascript"><!-changes title bar to match title on current page in frame-->
function changeTitle()
{
if (top.frames['main'].document.tit...
{
top.document.title=top.frames['m...
}
}
</script>
</head><frameset>
<frame name="main" src="http://foo.com/"scrolling="auto" target="main" ONLOAD="changeTitle();"><!--You need the onload handler to make the javascript work--><noframes>
<body>
Get Chrome, Safari or FireFox!
</body></noframes>
</frameset>
</html>
- meffid0
I fixed it, there was incorrect <! comments all over the doc.