Date post: | 04-Jun-2018 |
Category: |
Documents |
Upload: | preet-makkar |
View: | 220 times |
Download: | 0 times |
of 54
8/13/2019 File of HTML
1/54
PRACTICAL FILE
ON
WEB TECHNOLOGIESSubmitted for the partial fulfillme t of A!ard of de"ree of
POST GRA#$ATE #IPLO%A IN CO%P$TER APPLICATION
Affiliated to
P$N&AB TECHNICAL $NI'ERSIT(&ALAN#ER)
B*+
Name ROHIT Ra a
Re"i,ter o)-----------
TO
Sub.e/t IN+/har"e G$RLEEN 0A$R
PT$ LEARNING CENTER+123Gu.ra !ala "uru Na a4 i ,titute of 5o/atio al ,tudie,
Ci5il Li e,+Ludhia a)
September 6787+mar/h 6788
1
8/13/2019 File of HTML
2/54
Certifi/ate of Ori"i alit*
Thi, i, to /ertif* that the pra/ti/al file o PROGRA%%ING IN C
Submitted to P$N&AB TECHNICAL $NI'ERSIT( &ALAN#ER
I partial fulfillme t to the re9uireme t for the a!ard of the de"ree of
POST GRA#$ATE #IPLO%A IN CO%P$TER APPLICATION
i, a ori"i al !or4 /arried out b* ROHIT RANA
With re"i,tratio o)------------u der m* "uida /e)
The matter embodied i thi, pra/ti/al file i, a "e ui e !or4 do e
B* the ,tude t)
S)%AN&IT SINGH CHHABRA Si" ature of Sub.e/t I /har"e
/o +ordi ator #ATE 6:3:6788)
2
8/13/2019 File of HTML
3/54
A/4 o!led"eme t
O e e5er* ,tep there i, a eed of "uida /e; ,upport a d moti5atio ) Thi,e /oura"e, the per,o to "i5e their be,t performa /e a d help i rea/hi " their"oal,)
Thi, file i, e,,e tiall* prepared i the partial fulfillme t of the pra/ti/al
file of the POST GRA#$ATE #IPLO%A IN CO%P$TERAPPLICATION e !ho purpo,ed u, thi, file a d pro5ided u, !ith her 5aluable"uida /e; e /oura"eme t a d ,u""e,tio , throu"hout the period till /ompletio )
Pla/e? + Ludhia a
@@@@@ ))@@@@@))
3
8/13/2019 File of HTML
4/54
I deJFrame,et /ol,M =27 ;27 >J
:frame,etJ
Frame,et /ol,M =27 ; 27 >J
:Frame,etJ
:Frame,etJ
Attribute, of Frame,etSir,+ #o/ume t to be loaded)
%ar"i hei"ht+ Amou t of ,pa/e to be left at the top a d bottom of frame)
%ar"i !idth+ Amou t of ,pa/e to left alo " the ,ide of the frame)
Name+ Gi5e, the frame a u i9ue ame ,o that it /a be tar"eted b* other do/ume t
K PROGRA% OF NESTE# FRA%E++ J
HT%LJ
HEA#J
TITLEJPAGE :TITLEJ
:HEA#J
FRA%ESET ROWSMQ17 ;27 ;XQJ
FRA%E SRCMQA6)HT%LQJ
FRA%ESET COLSMQ27 ;27 QJ
FRA%E SRCMQA )HT%LQJ
FRA%E SRCMQA1)HT%LQJ
:FRA%ESETJ
FRA%E SRCMQA2)HT%LQJ34
8/13/2019 File of HTML
35/54
:FRA%ESETJ
HT%LJ
OUTPUT:
INTRO#$CTION TO &A'ASCRIPT
To ma4e a ,tati/ !eb pa"e d* ami/ i)e) ma4e it re,po d to u,er , a/tio it i,re9uired that ,ome pro"rammi " lo"i/ mu,t be embedded I it that ma ipulate, the
propert* 5alue, of !eb pa"e , item, /alled #O% ob.e/t) &a5aS/ript, doe, thi,!or4)
Creati " a d* ami/ !eb pa"e i 5ol5e, !riti " ,/ript, to /ha "e propert* ,etti ",a d to /all up pro/e,,i " method, a,,o/iated !ith #O% ob.e/t, ,urrou di " the
pa"e)
Ad5a ta"e, of &a5aS/ript
Embedded !ithi HT%L+ &a5a,/ript /ode i, pla/ed i bet!ee HT%L /odei )htm or )html file, ,o there i, o eed to put the /ode i ,eparate file, a deither i, the eed to ha5e a ,eparate te
8/13/2019 File of HTML
36/54
8/13/2019 File of HTML
37/54
I &a5aS/ript; 5ariable, /a be /reated that /a hold a * t*pe of data) I order tou,e a5ariable; it i, "ood pro"rammi " ,t*le to de/lare it)
K PROGRA% OF $SING 'ARIABLES IN &A'ASCRIPT++ J
htmlJheadJ
titleJ
.a5a :titleJ
,/ript la "ua"eMQ.a5a,/riptQJ
5ar aM87Z
5ar bM67Z
5ar /M a[b Z
do/ume t)!rite /
do/ume t)!rite Q brJQ
:,/riptJ
:headJ
bod* BGCOLORMQWHEATQ TE TMQBL$EQJB(E
:bod*J
:htmlJ
OUTPUT:
37
8/13/2019 File of HTML
38/54
&a5aS/ript Arra*
A arra* mu,t be de/lared before it i, u,ed) A arra* /a be de/lared u,i " a *o e of the follo!i " te/h i9ue,)
arra*Name M e! Arra* le "th arra*Name M e! Arra*
Operator, a d E [ =/d> proud,e =ab/d>)
#elete Operator
The delete operator i, u,ed to delete a propert* of a ob.e/t or a eleme t at aarra* i de
8/13/2019 File of HTML
39/54
#elete the ,i&u,t li4e the /o ditio , of e5er*da* life; the /o ditio al if ,tateme t i &a5aS/riptha, a el,e /lau,e) It allo!, u, to ta4e the alter ate path !he the /o ditio i if i,fal,e)
If !eather MM =rai i ">
^
alter = I _ll ,ta* at home> Z
`
el,e
^
alert = I ll "o out for a,troll> Z
The follo!i " /ode /he/4, if a umber i, e5e or odd a d di,pla*, a appropriate bo
8/13/2019 File of HTML
40/54
We 5e alread* lear t that /o ditio , /a ta4e o e of the po,,ible t!o path,) Thati,; !he /o ditio i, _true the if ,tateme t blo/4 i, e
8/13/2019 File of HTML
41/54
'ar da* M =Su da*>
da* MM =Su da*> =Holida*K> ? =Not Su da*K>
Thi, e !here da* hold, Su da*K> Co ditio TR$E
=Not Su da*K> if da* hold, a * other ,tri " Co ditio FALSE
For Loop,
The for loop i, the mo,t ba,i/ t*pe of loop re,emble, a loop i mo,t other pro"rammi " la "ua"e,; i /ludi " ANSIC)
S* ta
< head>
< .,d/>
< html>
45
8/13/2019 File of HTML
46/54
OUTPUT:
Co firm #ialo" Bo