User Profile

Collapse

Profile Sidebar

Collapse
melbourne2707
melbourne2707
Last Activity: Apr 19 '15, 09:39 PM
Joined: Apr 17 '15
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Code:
    <input type="button" value="Return"
    	onclick="document.getElementById('outputDiv').innerHTML=
    	document.getElementById('outputDiv').innerHTML + \br;">
    <div id="outputDiv"></div>
    Should it be something more along the lines of this?
    See more | Go to post
    Last edited by zmbd; Apr 19 '15, 04:55 AM. Reason: [z{please use the [CODE/] formatting for script and tables. -2nd request, please see FAQ and TOU}]

    Leave a comment:


  • Code:
    <input type="button" value="Return"
    	onclick="document.getElementById('outputDiv').innerHTML=
    	<\r>;">
    <div id="outputDiv"></div>
    This is one of the codes I've tried. Basically, I can't figure what to put after innerHTML.
    See more | Go to post
    Last edited by Rabbit; Apr 17 '15, 07:50 PM. Reason: Please use [code] amd [/code] tags when posting code or formatted data.

    Leave a comment:


  • melbourne2707
    started a topic Button that creates carriage return

    Button that creates carriage return

    I need to create a button that when clicked, starts a new line on the webpage.

    At the top of my page, there are buttons. Each time a button is clicked, a word appears, one after the other. I need this button to start a new line, so after this button is clicked, the buttons at the top, when clicked, will output their words in a new line below the previous ones. I've been experimenting with different coding for this button, but so far,...
    See more | Go to post
No activity results to display
Show More
Working...