Exporteren (0) Afdrukken
Alles uitvouwen
all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize
EN
Deze inhoud is niet beschikbaar in uw taal, maar wel in het Engels.

isMultiLine property

Retrieves the value indicating whether the content of the object contains one or more lines.

Syntax

JavaScript

p = object.isMultiLine

 

Property values

Type: Boolean

false (false)

The content contains exactly one line.

true (true)

The content contains more than one line.

Examples

The following example shows how to use the isMultiLine property to determine whether the content of an object can contain only one line or multiple lines of text.

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/ismultilineEX1.htm


<html>
<head> 
<script type="text/javascript">
function answer(arg) {
    arg ? alert("Yes") : alert("No");
}
</script>
</head>
<body>

<p>Input: <input id="oInput" type="text" value="oInput" />
<button onclick="answer(oInput.isMultiLine);">Can the input contain more than one 
line?</button></p>
<p>Textarea: <textarea id="oTextarea">oTextarea</textarea>
<button onclick="answer(oTextarea.isMultiLine);">Can the textarea contain more than 
one line?</button></p>
</body>
</html>


See also

a
abbr
acronym
address
applet
area
b
base
baseFont
bdo
bgSound
big
blockQuote
body
br
button
caption
center
cite
code
col
colGroup
comment
custom
dd
defaults
del
dfn
dir
div
dl
dt
em
embed
fieldSet
font
form
frame
frameSet
head
hn
hr
html
i
iframe
img
input type=button
input type=checkbox
input type=email
input type=file
input type=hidden
input type=image
input type=number
input type=password
input type=radio
input type=range
input type=reset
input type=search
input type=submit
input type=tel
input type=text
input type=url
ins
isIndex
kbd
label
legend
li
link
listing
map
marquee
menu
nextID
noBR
noFrames
noScript
object
ol
option
p
plainText
pre
q
rt
ruby
s
samp
script
select
small
span
strike
strong
sub
sup
table
tBody
td
textArea
tFoot
th
tHead
title
tr
tt
u
ul
var
wbr
xml
xmp

 

 

Weergeven:
© 2014 Microsoft