Senin, 22 Februari 2010

membuat konfirmasi



scriptnya:
<html>
<head>
<tittle><font face="Monotype Corsiva" color=blue size="+2"> Javascript(MEMBUAT KONFIRMASI)</tittle>><br>
</head>
<body>
<body BGCOLOR=yellow>
<font face="Comic Sans MS" color=red size="+5">XI IPA 5</font><br>
<font face="Algerian" color=black size="+3">Nurul Farida / 20<br>
<input type="button"value="Log Out"onclick="confirm('Are you sure to log out?')">
</body>
</html>

membuat prompt



scriptnya:
<html>
<head>
<tittle><font face="Comic Sans MS" color=yellow size="+2"> Javascript(MEMBUAT PROMPT)</tittle><br>
</head>
<body>
<body BGCOLOR=lightgreen>
<font face="Comic Sans MS" color=blue size="+5">XI IPA 5</font><br>
<font face="Arial" color=red size="+3">Nurul Farida / 20<br>
<input type="button"value="Log in"onclick="prompt('Insert Email Address','email address')">
</body>
</html>

Sabtu, 06 Februari 2010

membuat tombol





ini script-nya

<html>
<head>
<title> Javascript (penulisan pada TAG)</title>
<head>
<body BGCOLOR=white>
<font face="Monotype Corsiva" color=red size="+5">XI IPA 5</font>

<TABLE BORDER="1">
<TBODY>
<TR>
<TH WIDTH="242">NAMA</TH>
<TH WIDTH="176">No Absen</TH>
</TR>
<TR>
<TD WIDTH="242">Nurul</TD>
<TD WIDTH="176">20</TD>
</TR>
</TBODY>
</TABLE>
<input type="button"value="Jangan Sentuh"onclick="alert('Resek ni orang')">
</body>
</html>