Skip to main content

Posts

Showing posts with the label debug javascript

Debug javascript dengan Google Chrome

Buat halaman html yang akan dibuat. Contoh: hapusaja.html <html> <head> </head> <body> <script type="text/javascript"> function Sajikan() { Sel = document.getElementById( "PILIHAN" ); alert( "Mangga dahar " + Sel.options[ Sel.selectedIndex].value ); } </script> Mau buah apa? <select id="PILIHAN" onclick="Sajikan()"> <option value="Gedhang">Pisang</option> <option value="Kates">Pepaya</option> <option value="Pelem">Mangga</option> </select> </body> </html>