SHARE
TWEET

Untitled

Rofihimam Sep 11th, 2019 113 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>Buat Fungsi PBO Rofi'ul Himam XI RPL 2</title>
  5.     <link rel="stylesheet" type="text/css" href="buatfungsi.css">
  6.     <link href="https://fonts.googleapis.com/css?family=Bree+Serif&display=swap" rel="stylesheet">
  7. </head>
  8. <body>
  9.     <input type="text" id="nilai">
  10.     <input type="button" id="btnAmbilNilai" value="Ambil Nilai" onclick="ambilNilai();">
  11.  
  12.     <script type="text/javascript" language="javascript">
  13.         function ambilNilai() {
  14.             var objNilai = document.getElementById('nilai');
  15.             var n = objNilai.value;
  16.             alert("Nilainya adalah " + n);
  17.         }
  18.     </script>
  19. </body>
  20. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top