You are on page 1of 12

e r22s19J • • d

Client Side Scripting Languag b age for placing win ow or set


top a we p
Practical No. 11: oeve •kino with child window. ~t, ~
and wo1 e.

I. Pn1ctical Significance :I . I is a top-level object in C~ient Sfiide JavaScript, re~r


1e \\ indow objt!ct . \\ ,1c 1 t) Using frame in the rameset mean
Tl • · [rainese · seree,-~
a\\ indov\ or a frame(\\ it11111 . doW- at1t
• I a rent \\, 111
child\\ indO\\S inside t ,e p,
II. Relevant Program Outcome~(pOs) I doc of basic mathematics, sciences and b
. Apnh kno\\ c o as
PO t. Basic t...no\\ Ie d ge. t • . . p related problems. i,
. I , the co111pute1 g1 ou
eng111ecnng to so '1..: A. computer programming knowledge to so\ .
1 \etht
PO 2. Dbcipline Imo" led ge: · PP)'
computer group related problems. . .
. d . fee· Plan to perform experiments and practices to
PO 3. E~penments an pt ac 1 · llie
result to soh·e the computer group related problems. .
PO -t. Engineering Tools: Appl) rele, ant_C~m~uter programming/ technolog1e5a,.,
tools "ith an understanding of the ltm1tat1ons.
PO 5. lndh id ual and team" ork: Function effectively as a leader and team memc-:
dh erse mult1disciplinary teams.
PO 6.Communication : Communicate effectively in oral and written fonn.
Ill. Competency and Practical Skill:
The Practical is expected to develop the follow ing skills:
I. Create cookies based on the gi\en problem.
2. Write Ja\aScript to manage a \\tndovv and child windows in given mart!':·

IV. Relevant course outcome(s)

Create windows and child v. indo\\-s based on the given problem.

V. Practical outcomes(PrOs)
Develop javascript to manage gi\ en problem.
VI. Relevant affective domain related O u t comc(s)
I. Folio\\- prec au 11·011 measures.
1
-- Fo llow naming conventio ns.
3 - Follow ethical . , ·
VII. Minimum Theoretical Ba I pt act1ccs.
c <ground
The window . object ' wh·,c11 .is a top-level 0 t · .
represents a wmdow or a frame(wh' . . )J~ct 111 Client Side JavaScript.
. . ithtn lramcsct).
Smee, wmdow object is a to -l .
. other objects like
'docu men t' ,'h. ry, etc.within it.P eve! Object' ·tt conta111s
1st0

Opening windows :

-
>
tiM Language {22519}
. tSidt scrIP

~
,,,t,, -::-:::;d~~~~:-;::::~--:----
en method of ~vindow
------------
object is used to open a new window and loads the
rn ent specified by given URL.
docu
var r = window.open(url , name , features );

WiodoW Position

A new window always disp layed on the screen at the location which is specified br
user and location is specified by setting the left and top prope11ies of the nev. wmdow

var obg - windO\,\ .open("google com","wi ndowNane","top 200 ", left = 100,
width = 250 , height = 100 , status");

Closing a Windo" :

To close the \\ indow we can use that win dow object with the close method that :,. ou
want to close.

VIII, Resources required (additional) -


NIL
JX. Resources Used(Additional)
Sr. Name of Resource Broad Specificatio n Quantity Remarks(if 7
No. An\)
1. ~ f . .- 1rwio .. /o l{u,8 f<a,y

~~ov-rBHDD- 1 -
X. Program Code : Teacher must assign a separate program statement to group of
3-4 students.
I. Write a program to create a ,, indov,

lh1 rill)
cheiacp
<i;i)e) "Nf {)duwdefll(} </iil/e)
(~r,pf)
t futlc1iofl wir;do~)

!Ii(}c1o 'fl. OfM t ~d . hI1'17! ~ '((/){)of'{(/; (I •


Y)e,1n1 - tuu) ~
j
<l~t, i()1-)
( 1he&.d)
65

i
-

• i.<'llft~ ... - ~ a , . _ ;:: )(


-- - -

Loain Form

[IEn~er Your Pa11?.Swo1d


Submll

ft ,c; IIQj 11 ■ fl; ii G.


Client Side Scripting Language (22519)

XI. Result (Output of code):

A:ti;:~1eJ~::: ... ::::::::::·:::::::::: ::::::::::::::::::::::::::::::::::·::::::::.·:·


······ .............. .. ' ......... ······ ................................... ··········· ..
····· .... , .........
XII. Practical Related Question
a. \\.ith the help of e\:ample e,plain opening a \\ 111dO\\.
b. Ho\, to change contents of \\ mdO\\
(Space for anrn er)

0/'ill? i?feoii .:~f/j~J CJffn5 ::a v.;ew ..lmwsu


w. :. . . ........ . . ........... .... .. ..
. . . . . ..... "Y{f(lo/,o

: ,,§/&:: ~ ;()r/4vv &peo {Ll&~:®me::Sfriaj .


: w:;_~;J;./f~t
rn.rnt.
~~
...... ... a.pea......
~,/~~e:: fii:: : • -lt. .At 0
... O.t... .Y"Jtw rw/ridow.....
3~ci: ~iC~<iid.-ihJe:fDrjht:,: ..:: ::: ::: :.: :
: ~; ,;~; ·: ~ i iodaw :~IOJ;w· dif.C(,- f :~
~'fn]Mi.mt'{I( :""ti// ciif;
..... ..... . . ..... ' .............. .
~ zo. v.. Vle3nt "' '21:'" "),;
.. ... ... ········· ······· ..
. ······ ... ········· ....
... .... ..................................................... ····· ....................... .
. .. .. ' ........ ....... .. , .. . .. .. ' ......... , .. .
.. .. . ... ... ... ... . . . . .. . . . ... . . , .....

·· · ··· .. . ········ · ... ·· ···· .. .... ·· ··· · ·········· ········ ·················· ········•·" ... .
... .. . ... .. ... ··-· ····· ......... ' ........ '•
' .... '······ ······ ................. .
,
. t ·ng Language {22519}
eS~c"P_ , _ _ _ _ _ _ _ _ _ __
Cfient Sid- _ _ __ _ __ _

---T/f iv_& ..·.· da() •..·Ch.i-s'.1'3~ ••••ili.i •••••c;; h. fe 0.1 •qf. ••... 'W licde
....rw,.odJ;w ·LlJ dAc.urr?e.o.i .,.rwr/.teC.) ... fut?t1io.r?.
IY ··~ ·: · ·· ,119i ....
. · ·· ···· ··~,~ .....io ... ... CJ.Y.€.Y.7/d.ez. 1:he
.. fl .6.fbo:(] .Ll~h
.......40~.... ~f
CoYJ1if.······ .t. . ...:i .e .. ... (Wevfff!Je.3 ~
····.·.... ..R . ···· ·o-''Yie .... .~_(}_ ...f· ~ .ai2 . the . .dorr!erzt
o.f . feqi1,;c .JLeteme,1 aR. cx 'YY'.;adaw we ned
... 4:0. ...·~ ·"'· ;.~e.. . .'.1/t:,,.....U.(l_i·t;,{1.e. .td. . .to. if1lk1 ~eme/Jf
... 0f.Je ..... rieer- . -- 1+.o . .()Se . . .7.r;....(le-:r . ti~J0.i &11,r; buie
.....4v......JSe.'t.. . . oh& ... o/.le w. ... c.0.0 .{erd -tJ o. 1'1At ..
.....f) lY'fl,e .fl.1.': · · ····· ...... . ..
. . . .. . . . . . . . . . . . . . . . .. . . . ... . . . . .. ... .. . . . . . . . ... ... ... .. ... ····· ............... .
XIII• Exercise
a. Write a ja\ ascnpt to call the child's window us ing JavaSc ri pt Function.
~ b. Write a _ja, ascnpt to s ho,, ho\\ to access el e ments of ano ther child \\ indo\\
(Space for Ans,Hr)

.. . .. ... . . . ... .. . . . . .. . . . .. . . ... . . . . . . . . . .. . .. . . . . . . . . . .............................


.................. ... . 0 0 o O O o O O 00 0 0 0 0 0 0 0 0 f o IO O 0
·~ • • -=-·~ ~-«:r-.
- - - -
-- --

C )I'.
-- - - .

• O lrn Ii-.~~~ ~• n
- • Jffl n!"Cf • l ~ C•rw;f!-
- - -
1
- - -
- I: )(
- - ------=---- .

1 J ffl I 11 I • ••

Try 1r I uue:na\' \ ' . ~

~ llnr IS c::zi:;.-.m,

• p lv;Ht<E ;D~II I
0
'i

- ----
r

I
I
I

I
Qnjl 1- a.i. o.... 1 IN!-. I Ota.1. EMr I 11. I o....- + 0 - 1-' x I

-C! QltA l :.i


- -

tr :.1 a

• J'..I 11:Df t~ ~0 JfflJC'i


L"t; iii 0
- - -
- 4.Wli - 1.ffl>-~ On:~ C'. ,c
---- - - "'~!~'.; - -

uoo~t! \"ahooHing;
1

You might also like