0% found this document useful (0 votes)
49 views3 pages

Client Side Scripting Unit-5 (Frames Pyq's)

Previous yearQuestions For Client Side Scripting (22519) Diploma 3rd Year 5th Sem (I Scheme) Chapter 5 Frames

Uploaded by

skillzifyind2024
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views3 pages

Client Side Scripting Unit-5 (Frames Pyq's)

Previous yearQuestions For Client Side Scripting (22519) Diploma 3rd Year 5th Sem (I Scheme) Chapter 5 Frames

Uploaded by

skillzifyind2024
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Unit-5 Frames Vikas Patil

Frames
W-19
Q.6. (b) Write a script for creating following frame structure (6M)

FRAME 1
FRAME 2 FRAME 3
 FRUITS
 FLOWERS
 CITIES
FRUITS, FLOWERS and CITIES are links to the webpage [Link], [Link], [Link] respectively. When these
links are clicked corresponding data appears in FRAME 3.

Ans.

1)[Link]
<html>
<frameset rows="10%,90%">
<frame src="[Link]" name="f1"></frame>
<frameset cols="50%,50%">
<frame src="[Link]" name="f2"></frame>
<frame src="[Link]" name="f3"></frame>
</frameset>
</frameset>

</html>
2)[Link]
<html>
<body>
<h2 align="center">Frame 1</h2>
</body>
</html>
3)[Link]

To show the content of [Link] and other files in “Frame 3” you have to set the target to the name of the
Frame 3

Here its “f3”.


<html>
<body>
<h2 align="center">Frame 2</h2>
<ul>
<a href="[Link]" target="f3"><h3><li>Fruits</li></h3></a>
<a href="[Link]" target="f3"><h3><li>Flowers</li></h3></a>
<a href="[Link]" target="f3"><h3><li>Cities</li></h3></a>
</ul>
</body>
</html>
4)[Link]
<html>
<body>
<h2 align="center">Frame 3</h2>
</body>
</html>

1
Unit-5 Frames Vikas Patil

W-22
Q.5. (c) Write a JavaScript for creating following frame structure: (6M)

TYIF (Frame1)

Operating System Frame 3


 Chapter 1
 Chapter 2

Chapter 1 and Chapter 2 are linked to the webpage [Link] and [Link] respectively. When user click on
these links corresponding data appears in FRAME3.

Ans. Same answer like Winter-19 Question

S-22
Q.1 Write a javascript syntax to accessing elements of another child window. (2M)

Q.6. (a) Write a javascript to open a new window and the new window is having two frames. One frame containing
button as “click here !”, and after clicking this button an image should open in the second frame of that child window.
(6M)

S-23
Q.6. (b) Write a script for creating following frame structure : (6M)

Frame 1 contains three buttons SPORT, MUSIC and DANCE that will perform following action :
When user clicks SPORT button, [Link] webpage will appear in Frame 2.
When user clicks MUSIC button,[Link] webpage will appear in Frame 3.
When user clicks DANCE button,[Link] webpage will appear in Frame 4.
FRAME 1
SPORT MUSIC DANCE

FRAME 2 FRAME 3 FRAME 4

[Link]
<html>
<frameset rows="30%,70%">
<frame src="[Link]" name="f1"></frame>
<frameset cols="33%,33%,*">
<frame src="[Link]" name="f2"></frame>
<frame src="[Link]" name="f3"></frame>
<frame src="[Link]" name="f4"></frame>
</frameset>
</frameset>
</html>

2
Unit-5 Frames Vikas Patil

2. [Link]
Consider [Link], [Link] and [Link] with containing information.
<html>
<body>
<h1 align="center">Frame 1</h1>
<center><a href="[Link]" target="f2"><button>SPORT</button></a>
<a href="[Link]" target="f3"><button>MUSIC</button></a>
<a href="[Link]" target="f4"><button>DANCE</button></a></center>
</body>
</html>
3. [Link]
<html>
<body>
<h1 align="center">Frame 2</h1>
</body>
</html>
4. [Link]
<html>
<body>
<h1 align="center">Frame 3</h1>
</body>
</html>
5. [Link]
<html>
<body>
<h1 align="center">Frame 4</h1>
</body>
</html>

W-23
Q.6. (c) (i) Design frameset tag for representing following layout : (3M)

FRAME 1

FRAME 2 FRAME 4 FRAME 3

S-24
Q.4. (a) State what is frame? Explain how it can be created with suitable example.(4M)

You might also like