Javascript Reference
Categories: BASEFONT

javascript BASEFONT face

@March 15, 2008, 1:22 a.m.
faceFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

Read/Write  

Indicates a hierarchy of font faces to use for the default font of a section headed by a basefont element. The browser looks for the first font face in the comma-delimited list of font face names until it either finds a match in the client system or runs out of choices, at which point the browser default font face is used. Font face names must match the system font face names exactly.

 
Example
 
document.getElementById("myBaseFont").face = "Bookman, Times Roman, serif";
 
Value

One or more font face names in a comma-delimited list within a string. You may use real font names or the recognized generic faces: serif | sans-serif | cursive | fantasy | monospace.

 
Default

Browser default.


Powered by Linode.