<disclaimer type="browser compatibility>

    <div id="myDiv">foo</div>
    <input type="button" />

    <script type="text/_javascript_">
        function changeText(txt) {
            document.getElementById('myDiv').innerHTML = txt;
        }
    </script>

</disclaimer>

essentially, you want to change the innerHTML property of a div/span/etc with a specific ID using getElementById()

hth
charlie

  ----- Original Message -----
  From: [EMAIL PROTECTED]
  To: CF-Community
  Sent: Wednesday, October 29, 2003 1:10 PM
  Subject: suggestions on how to change text without using frames

  Dear Friends,

  I have a site that doesn't use of frames. Normally, when I wanted to change
  one area of text without reloading the entire page I would use a _javascript_
  to target a frame ("_javascript_:top.framename.location='features.cfm'")

  Is there any other ways to change the text without the use of frames?

  Our baby is six days old today, and it's the best work from home I've ever
  had.
  Thanks

  Steve


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to