Hi,
I am new to javascript.
This is my problem description.
Actually I have 3 pages.
In the first page I have 2 frames.
In the first page(first) from one of the frame(first), I have a link to another page(second).
From the second, I have opened new page(third).
these and all i did in html.
But the problem is from the third page , I have to dispaly some contents to the
second frame of the first page using the javascript function and on_click event.
The code as follows:
The Code for first page:
[HTML]<html>
<head>
</head>
<frameset rows="50%,50%">
<frame src="D:\frame_b .html" name="first">
<frame src="D:\frame_c .html" name="second">
</frameset>
</html>
The code for second page:
<html>
<head>
</head>
<body>
this is frame_b
<a href="D:\link.h tml"target="_bl ank">click here</a>
</body>
</html>
Code for third page:
<html>
<head>
</head>
<body>
this is the new page open in new window
<a href="D:\sample .html"target="_ blank">click here</a>
</body>
</html>
Code for fourth page:
<html>
<head>
</head>
<body>
this is sample html page
<script>
function testing()
{
window.parent.s econd.location= "D:\frame_c.htm l"
}
</script>
<a href="#" onClick="javasc ript:testing(); return false">Say Hi</a>
</body>
</html>
The code for the text display in secod frame:
<html>
<head>
</head>
<body>
this is frame_c
</body>
</html>[/HTML]
Where I am doing mistake ? please help me
I am new to javascript.
This is my problem description.
Actually I have 3 pages.
In the first page I have 2 frames.
In the first page(first) from one of the frame(first), I have a link to another page(second).
From the second, I have opened new page(third).
these and all i did in html.
But the problem is from the third page , I have to dispaly some contents to the
second frame of the first page using the javascript function and on_click event.
The code as follows:
The Code for first page:
[HTML]<html>
<head>
</head>
<frameset rows="50%,50%">
<frame src="D:\frame_b .html" name="first">
<frame src="D:\frame_c .html" name="second">
</frameset>
</html>
The code for second page:
<html>
<head>
</head>
<body>
this is frame_b
<a href="D:\link.h tml"target="_bl ank">click here</a>
</body>
</html>
Code for third page:
<html>
<head>
</head>
<body>
this is the new page open in new window
<a href="D:\sample .html"target="_ blank">click here</a>
</body>
</html>
Code for fourth page:
<html>
<head>
</head>
<body>
this is sample html page
<script>
function testing()
{
window.parent.s econd.location= "D:\frame_c.htm l"
}
</script>
<a href="#" onClick="javasc ript:testing(); return false">Say Hi</a>
</body>
</html>
The code for the text display in secod frame:
<html>
<head>
</head>
<body>
this is frame_c
</body>
</html>[/HTML]
Where I am doing mistake ? please help me
Comment