0% found this document useful (0 votes)
27 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)
27 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
You are on page 1/ 3

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 fruits.html, flowers.html, cities.html respectively. When these
links are clicked corresponding data appears in FRAME 3.

Ans.

1)main.html
<html>
<frameset rows="10%,90%">
<frame src="frame1.html" name="f1"></frame>
<frameset cols="50%,50%">
<frame src="frame2.html" name="f2"></frame>
<frame src="frame3.html" name="f3"></frame>
</frameset>
</frameset>

</html>
2)frame1.html
<html>
<body>
<h2 align="center">Frame 1</h2>
</body>
</html>
3)frame2.html

To show the content of fruits.html 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="fruits.html" target="f3"><h3><li>Fruits</li></h3></a>
<a href="flowers.html" target="f3"><h3><li>Flowers</li></h3></a>
<a href="cities.html" target="f3"><h3><li>Cities</li></h3></a>
</ul>
</body>
</html>
4)frame3.html
<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 Ch1.html and ch2.html 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, sport.html webpage will appear in Frame 2.
When user clicks MUSIC button,music.html webpage will appear in Frame 3.
When user clicks DANCE button,dance.html webpage will appear in Frame 4.
FRAME 1
SPORT MUSIC DANCE

FRAME 2 FRAME 3 FRAME 4

1.Main.html
<html>
<frameset rows="30%,70%">
<frame src="frame1.html" name="f1"></frame>
<frameset cols="33%,33%,*">
<frame src="frame2.html" name="f2"></frame>
<frame src="frame3.html" name="f3"></frame>
<frame src="frame4.html" name="f4"></frame>
</frameset>
</frameset>
</html>

2
Unit-5 Frames Vikas Patil

2. frame1.html
Consider sport.html, music.html and dance.html with containing information.
<html>
<body>
<h1 align="center">Frame 1</h1>
<center><a href="sport.html" target="f2"><button>SPORT</button></a>
<a href="music.html" target="f3"><button>MUSIC</button></a>
<a href="dance.html" target="f4"><button>DANCE</button></a></center>
</body>
</html>
3. frame2.html
<html>
<body>
<h1 align="center">Frame 2</h1>
</body>
</html>
4. frame3.html
<html>
<body>
<h1 align="center">Frame 3</h1>
</body>
</html>
5. frame4.html
<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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy