Professional Documents
Culture Documents
t iilJ/1
I I
/t :t t
0 p.html X +
➔ C (i) File I (::/tJsers/hp/Desktop/p.htrr1I
Eligible IJ p ,. Notepad
FIie Edit Forrnat View Help
<script>
var a,b,c;
a=19~
if(a>=18)
11
document.write( El igible 11 );
else
docu ment,write( 11 Not El igible 11 );
</script>
, ·0 p. ht m l
to p /p .h tm l
/h p /D e s k
➔ C © File / C:/ U s e rs
~
~ p - N o te p a d
100 V ie w H e lp
Fi le Edi t F o rm a t
100 <script>
v a r a ,b ,c ;
100 a=56; =·~
--~ ~
_;;_-
"=-
b=44;
c=a+b·I
<b r> < b r > '' );
u m e n t. w ri te ( c + "
t i .... ... . .
tml
f- ➔ a © File I C:/Users/hp/Desktop/R.H
xt display with fo n t ta g
vascript extdisplaywirhouthtmlmJ avascript te
headin g tag
avascript text display with
y w it h f o n t a n d p ta g
javascript text displa D X
8 R- Notepad
p
File Edit Format View Hel
<script>
t display without html tag");/
document.write("javascript tex ascript tex t display with font tag</font>");
im e' siz e= 7> jav
document.write("<font color='l )
("< hl>javasc rip t tex t displa y with heading tag</hl>"); avascript tex t display wi th font an d p tag</p></font>"
document.write ra MT Script Capitals'><p align
='center'>j
lor='r ed ' siz e=? face= 'M atu
document.write("<font co
</script>
I
II I
I
I C:/U sers/hP!Desktc,p/f.htm
'
0 (1) 1:fl<:~
'I
It ,,/ ,Ii, :l ,/ II ' I I I I ii
Not' Eligil1Jo
1111 111 1 ijlV/1 Y 1,ui411~u,1U
F Ii /ill1/IU
1/ 111l,h~t1!/l~Ul Ii /l#ijl~ h 1 ,@1111/i11liJ/i/
I
11 1 11 11
l 1lij///1
/ 11!~ti/ 11 1ij1j~I, f
111/rIi 11iij1
1
1, /dlIll iiI·Uli11Ihilli11
I 1IUhU1~;fflhlli 1nm. i
I
'
p Nott:~1,)a(1
•m
I '
I
I
I
I
'
var a,b,c;
a=10;
if(a>=18)
document. w ri te (" EI igib/e "),
else
document.write{"Not Eligib
</script>
II K - Notepao
D X
le Edit Format View Help
Kri~> 1
, ~
locument.write("javascript text display without html tag");\
locument.write("<font color='lime' size=7>javascript text display with font tag</fon t>"); 1 11
' 1 '1
iocumen t.write(" <hl>java script text display with heading tag</hl> ");
'
:iocument.write("<font color='re d' size=7 face='M atura MT Script Capitals'><p align='ce nter'>jav ascript
te~t display with font and p tag</px /font>" )
,/script>
lNFUT ..Enter
0
_I INPUT Enter
-1 LET D ~
0
nz
5 PR INT TJ1e
6 END
tl --' fr'!i'~' l
tr
i
!i
= Unt it led
"E,,tt-:r ll,e le11gth i11 Ki l . ler '· ; K
t1 K / l.t•
''TJ.e le119th i ll 11i les ='' : n
l 1n1t "'"·'
0 file:///C:/Users /hp/Desktop/r .html
11-:-:-s----------11~~
File Edit Format View Help
I~~
<p>WJ.w.:t i.,s ~o-t/4,V ~<IP >
\::s < ~ ft(pe,=' 1~ 11 ~ = ' ' ~ ' ' vo.,.u.u,=' 1Ye.-s''> Ye.-s<b-Y>
< ~ ft(p.e,= 11 ~ 1~ = 11~ 11 vo.,.u.u,= 11 No 11 > No<b-Y>
I ■ t - Notepad
file Edit Fom1at View Help
l.
What is your option
@Yes
ONo
5, ;
Ill r- Notepad
File Edit Format View Help
.~::/ -~~
-·
-~~-.=:.~
-
- '.\,.~-\, ,"'=uC,Mn~/
__
,._____