Results 1 to 2 of 2

Thread: onclick javascript function

  1. #1
    Join Date
    Mar 2004

    onclick javascript function

    how do i write this in a stand alone javascript

    <input type="button" name="sendToFlash" id="sendToFlash" value="Send Text To Flash" onclick="getElementById('flash').sendTextFromHtml(htmlText.value + htmlText.value); document.getElementById('htmlText').value = ''" />

    i need to make a function that will be executed when they click on onclick

  2. #2
    Join Date
    Dec 2003
    Bucharest, ROMANIA
    You should better call a function (placed in an embedded JavaScript code, usually in the HEAD - or an external JS file) and pass the arguments there. JavaScript inline code is not recommended.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center