User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 360,998 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,470 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting

Java script - wordwrap ?

Join Date: Jul 2005
Location: india
Posts: 143
Reputation: katarey is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 15
katarey's Avatar
katarey katarey is offline Offline
Junior Poster

Re: Java script - wordwrap ?

  #5  
Nov 26th, 2006
or you can use the DIV tag to show the Answer!

code is here:

put in head

<script language="JavaScript" type="text/javascript">
//<![CDATA[
		
function get_Result()
	{
		var divAnswer = document.getElementById('myDiv');
		divAnswer.style.visibility = "visible";
	}
//]]>
</script>
<style type="text/css">
<!--
#myDiv {
	visibility: hidden;
}
-->
</style>

and this in Body
<p><b>Q10) Breed is not about traits as much as it is about pedigree. Pedigree means?</b><br>
<form action="" method="post" name="answer">
  <input type="button" name="submit" value="Get Answer!" onclick="get_Result();" />
</form>
</p>
<div id="myDiv">
  <p>Having papers from the registering body that attest to their ancestry. A tracking registry.</p>
</div>
Freelance Web Designer & Developer
Http//www.Katarey.com
Reply With Quote  
All times are GMT -4. The time now is 6:58 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC