Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: tags part-2


Message #1 by True2ViSioN@a... on Mon, 10 Dec 2001 17:05:17 EST
--part1_163.55ff6cb.29468b9d_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

ABOUT : i need help on writing tags the document thinks of them as real ones

ok here is all the info i have i hope it will help you help me

the strTextPowerText properties

<!-- prefill the box -->
<input type="hidden" name="strText" value=" power-pad(r) ">
<!-- TYPEING Field -->
<iframe id="strTextPowerText" onBlur="output();" onFocus="fill();" width=100% 
height=92% style="position:absolute;top:80;"></iframe>

<!-- set the html field to be design mode -->
<script>
strTextPowerText.document.designMode="on";
</script>


<script>

//fill the value
function fill()
{
if(strTextPowerText.document.body.innerHTML=="")
{
strTextPowerText.document.body.innerHTML.value;
}
}

//output the value
function output()
{
value=strTextPowerText.document.body.innerHTML;
}

//set the focus
document.all['strTextPowerText'].focus();

</script>

the code i use is 


<a class="menuItem" href="#"  onClick="strTextPowerText.document.write('<HTML>
  </HTML>');strTextPowerText.focus();"> &lt;HTML&gt; </a>


but it thinks of the tags as real tags i want to beable to click on it and 
have it write them
if i use it with out the tags it works fine what is the problem how can i fix 
it


  Return to Index