CSS 4th
CSS 4th
DATE
Ceoie
A c oolie a amount of nformation that Persists
et ween serNer side ae|ent -sie. we
\nri t e c o o i e
oeument cookie "usesnameTohnSmi+h,
expive : h u , 8 Dec
Path
Zheady
<seript
function wi te()
Var Date()
unetion rea()
iflocument
docuentwrite("cookiey not foum):
else
document-wite(ocu ment-co kie)
Z/sript
<head
DATE
)A\so kob,ntansiet
)Also known an
in-enor cookie ookie
)3essioncookie ) t is written to t h e
automatically deleted computer's had isk
Yeaitbeeuntilthe
when tA he u s e y exi t
|ation expiration aate ha been
t h e bvowser
reached then it's eleted
Browserocationobiet
tbe location objectteotáins infomation bout
t he c u r e nt URL
property of the winow ebieet
-)The location object
with: window. locatio
) T e loc ation obiect is accesed
iust loeation.
tml <bediy
winow |locatio bjeet <
<pi : d e m o " K p
Zseript
| e t r i g i n indowlocationoyiqin.
document qeteementByI (demo). inner hT ML: origin
<1scri
DATI
myForm'
Enter We yname
<in put typ e " t e x t"
Passwodi
<input type tex t"
Kipt t e e t t e a " atebmit"onetittoret
PaneI</p
Zseyipt
fumetion store)
</script7
</htmly
having t h e 9 v e n Value. na m e
DATE
imow' con t e n t a e a
v ) a m e. t sets
wimdo
w) Lenath It return3 the -f f a m ey
window.
o e n C ) I t opens
)lose): I t elo e
t he c u r r e n t wwiow.
) m o v e | o C)
v)nove ByC)
)resi2e
x )reize ByO
xi)scrol|ToC)
x )s r o l |By()
PAGE N
DATE
Winow pem
bello: htim
tm>
L | t m|
Sapletml
Khtm|
Kseipt
var sbi
windowopen(hellß.htnl winowame:
top200, left o0,width= so, heiqht= (oo,
status),
4l3cript>
OPe
<h t
Rclose
ml
sin button
zbody
<button onelich "openl )"open imdolbutton>
Zbutton onelickcloel)"closeWimo <lbutton
<3cript
mywindo
fction Open()
mNimdo w indow.oen Wi"
" w i l t h= 2 0 0 h e i a h tt = lo o"),
muinow docu ment.wviteHello
munNindow.el6ge()
</sevipt
</bdy
htl
<he ad
<st yle
body
buttonf
position:fixed
Kbutto fumetionZ
metho
alwinow's le ft
<ooiate
to t he specikied
wwindow. move|o(e,)
<enten ts
changig
unetin pen(ad)
hei a h t = | o o"
p e n ( w w . qooqle co)
vale='" Coqle one|icls ="
Ab u t t o n
) oogle/butto
Zbtton value "Vi dyalankar oncIickoPen
scre||To (
docuent to the pecified coordinate
t serols t he
w ndow.scrolTo ( e p o s , pos
Sta:
he ad
Lstle
body height Sosop*: wid th. soopx,
z/styles
z/head
seroITo(ioo,o):
netion sero | | \ ( )
d.scrol|To (o,o)
<p>Lona Textlp
3cro.. orióntall
Kbut ton ome|ick=scroll H O
</buttoms
)>Keyoll,Vertcall
btto onelik serl
< / b utto n
</h tml
Mutiple wimdous
function sbowc)
for(io,iso, i i t )
+i, top
'|eft'= + a t i d t h 3 o ° ,
height : oo):
clseript
u t ton e Put
SetInterval
s n t a x n o w s e t I t e r v a l (Funetion, misecos\
< s e i t d e mo"l
wino.cleaInteuaal (tierariable)
Setyte
f u c t i o t á t count)
intervaletItèelshowc)"
une tio
<sevipt
-acc essina
ehil wimo, ele men t
var ehillainow window.open(ehilhtnl
AehilindowName);
htnl)
Zfameset
<frame s y c = " & t l n a mes a'
hae">
() /fvaeset7it
Z/framest
ehtm>
<formn ac t i o n
metod" post"
2p<a hyef prg"trget 5'>
<input type:button' value"Cick hee">
</body
</h trml
b.ht nl
html> <body
</body</htnl>
changing wi ndo contents
htm |
2seri pt itp.
funetion open(ad)
moanisiwinowopen(ad,"yWindo'",
beight:soo");
</3cript
<<bat to n Value:Gcooale"ocliek = "Pen(
soog lecom)Geooale </buttony
<button value Ni dyalankar"nc)ich"ope
(vpt. eduin')"> Vi yalankar </buttony
<fbody
</h t ml
moe Io C)
ptm |
<body
oPenin()"Open Window
< b t t o n onclick:
</puttoy
onclick moetowin C ) Z tioveTo
Ab utton
K / u t to ny
<scyipt
mapms
wm uYlo. ) ..
oving ca
’html>
2he ad
function startC)
fumetien stopc)
wiinowonload =init,
< /seript
/head
:cav"