www.webdeveloper.com
Results 1 to 2 of 2

Thread: Hide the text from showing

  1. #1
    Join Date
    Jan 2013
    Posts
    1

    Hide the text from showing

    With the following code I want to hide the txt with out having to re write the whole page ... Or is that my only option?

    <SPAN ID="copytext2" STYLE="height:*;width:200;background-color:#ffffff;Font size:10">
    Not Contacted will attempt again on
    <script type="text/javascript">
    <!--
    var currentTime = new Date()
    var month = currentTime.getMonth() + 1
    var day = currentTime.getDate() + 1
    var year = currentTime.getFullYear()
    document.write(month + "/" + day + "/" + year)
    //-->
    </script>
    </SPAN>
    <TEXTAREA ID="holdtext2" STYLE="display:none;">
    </TEXTAREA><br><br>
    <BUTTON onClick="ClipBoard2();">Next Day</BUTTON>

  2. #2
    Join Date
    Sep 2008
    Location
    Jackson MS
    Posts
    374
    You could run a **.style.visibility = 'hidden' command from a (body onload=***) or, if you have other things to do at startup, in a function theonload kicks off. I often have something like
    Code:
    function startup() {
      document.penta.DeBugging.checked=false;
      var dloc = document.location.toString();
      var DeBugging = document.getElementById("DeBugging")
      if (dloc.slice(0,4) != "file") {
        DeBugging.style.visibility = 'hidden'; }
    }
    in my pages to populate text areas with test data from a checkbox only available when running the page from my computer.

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



Recent Articles