Navigator 2.0, Internet Explorer 3.0
string.fontsize(size)
An integer between 1 and 7 or a string that starts with a + or - sign followed by a digit between 1 and 7. If an integer is specified, it is an absolute font size specification. If a string beginning with + or - is specified, it is a font size specification that is relative to the <BASEFONT> font size.
A copy of string, contained within <FONT SIZE="size"> and </FONT> HTML tags.
The first two lines of the following code fragment have the same effect as the second two:
s1 =index.html 'Chapter 1'.fontsize(6); s2 = 'SMALLCAPS'.fontsize('-1'); s1 = '<FONT SIZE="6">Chapter 1</FONT>' s2 = '<FONT SIZE="-1">SMALLCAPS</FONT>'
file: /Techref/language/java/script/definitive/refp_362.htm, 5KB, , updated: 2019/10/14 15:00, local time: 2024/11/15 01:45,
3.141.193.126:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://linistepper.com/techref/language/java/script/definitive/refp_362.htm"> [Chapter 21] Reference: String.fontsize()</A> |
Did you find what you needed? |