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 373,520 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 3,815 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: 4
Solved Threads: 15
katarey's Avatar
katarey katarey is offline Offline
Junior Poster

Re: Java script - wordwrap ?

  #7  
Nov 28th, 2006
onclick="document.answer.Tim10.value = 'Having papers from the registering body that attest to their ancestry. A tracking registry.';"

onclick is a event

and "document.answer.Tim10.value" is a JavaScript

syntax : document.FormName.fieldName.value = "The value"

Like in this code I have used the two JavaScript syntax

1.) document.write("Strings")
2.) alert("Strings")

Example 1 :-
[HTML]<input type="submit" name="Submit" value="Submit" onclick="alert('Hello World'),document.write('Hello World')" />[/HTML]

we can write like this

Example 2 :-
[HTML]<input type="submit" name="Submit" value="Submit" onclick="javascript:alert('Hello World'),document.write('Hello World');" />
[/HTML]

or

Example 3 :-
In <head>
[HTML]<script language="JavaScript" type="text/javascript">
/*<![CDATA[*/
function btnClick()
{
alert("Hello World")
document.write("Hello World");
}
/*]]>*/
</script> [/HTML]

in <body>

[HTML]<input type="submit" name="Submit" value="Submit" onclick="btnClick();" />[/HTML]

All three Example will give the same result
Freelance Web Designer & Developer
Http//www.Katarey.com
Reply With Quote  
All times are GMT -4. The time now is 6:24 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC