Space Function

Tips >>ASP Functions

WANTS TO MAKE SOFTWARE WITHOUT KNOWLEDGE OF ASP? CLICK HERE


The Space function returns a string that consists of a specified number of spaces. The number argument is the number of spaces you want in the string. The Space function creates a string with the specified number of blank spaces.

Note :-
The HTML will only show one blank space on the same line.

The Syntax of the Space Function is :-

Space(number)

Its Description is :-

Parameter Description
number Required. The number of spaces you want in the string

Example#1 :-

Code :-
dim txt
txt=Space(10)
document.write(txt)
Output :-
" "

Example#2 :-

Code :-
<% ="Line above space." %>
<% =Space(13) %>
<% ="Line below space." %>
Output :-
Line above space.
Line below space.

 
E-mail : sales@virtualsplat.com
Phone : +91-9892413501

Whatsapp Icon +91-9967648641

Whatsapp Icon +91-9967648641