dom - Not knowing how to position the output of Javascript in an HTML page -


I'm starting a JavaScript I'm working on a wordpress search game which is a clue for a word (a dice ) Now I need to show the empty space of the word and a clue below it. I do not know how hot it is to display the content on that page ???

  & lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" & gt; Form1 = document.forms [0]; Function Display () {words = New Array ("Elephant", "Tiger", "Panther", "Giraffe", "Zebra", "Anaconda"); Phrases = New Array ("The largest country mammal", "Streep animals are moving towards extinction", "Amazon got in the forest", "Found in Africa", "It helps us in the cross", "Very dangerous Reptiles "); Count = word [i]. Length; While (calculation> 0) {document.write ("__") // Display the word with spaces document. Write (""); // space = between characters; }} Function show_dice () {randomnumber = Math.floor (Math.rendum () * 6); I = randomnumber; Randomnumber = randomnumber + 1; . Document.getElementById ("myButton1") value = randomnumber; Document.getElementById ("myButton1") = disabled "disabled". } & Lt; / Script & gt; & Lt; Link rel = "stylesheet" type = "text / css" href = "keyboard.css" & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Form & gt; & Lt; Input type = "button" id = "myButton1" name = "Button1" onclick = "show_dice ()" value = "click on the dice !!!" & Gt; & Lt; H1 & gt; Enter your estimate for the word below & lt; / H1> & Lt; H2 & gt; The clue for the word is:  & lt; Input type =;  
> and and to edit its contents < / P>
  document.getElementById ("clue"). Value = "___";  

Later, you can & lt; Div & gt; and it can change the content through . WinnerHTML property;


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -