This document provides code for a JavaScript puzzle game and instructions on how to create and display it in a web browser. It includes the HTML, CSS, and JavaScript code to generate a 4x4 grid with numbered boxes that can be rearranged by arrow keys. It also includes JavaScript functions to check if the boxes are in the correct order and display an alert if the puzzle is solved. Additional code examples are provided to demonstrate creating HTML elements and attributes with JavaScript, and displaying browser information using the navigator object.
This document provides code for a JavaScript puzzle game and instructions on how to create and display it in a web browser. It includes the HTML, CSS, and JavaScript code to generate a 4x4 grid with numbered boxes that can be rearranged by arrow keys. It also includes JavaScript functions to check if the boxes are in the correct order and display an alert if the puzzle is solved. Additional code examples are provided to demonstrate creating HTML elements and attributes with JavaScript, and displaying browser information using the navigator object.
function printHasil() { var dataform = new obyekblok ( 'frmkirim','form','action="http://www.eps1905.co.nr/pmrgweb/program/form.php" method="post" />'); var databutton = new inputform('button1','submit','Kirim',' />'); var datatextarea = new obyekblok('txtarea_komentar','textarea','rows="20" cols="50" />'); document.write(dataform.hasil()); document.write(datatextarea.hasil()); document.write(datatextarea.tutup()); document.write("<br />"); document.write(databutton.hasil()); document.write(dataform.tutup()); } --> </script> </head> <body> <input type="button" name="btn_proses" value="Membuat form,button dan text area" onclick="printHasil()"> </body> </html> b. Tampilkan dokumen xHTML tersebut mempergunakan web browser. c. Sebutkan obyek javascript yang terdapat pada dokumen tersebut dan jelaskan !
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title> Editor HTML untuk Internet Explorer</title> <script language="JavaScript"> var Modustampilan = 1; // WYSIWYG
function Init() { iframe1.document.designMode = 'On'; }