HTML document's background color

HTML document's background color

How to set a HTML document's background color?

View Answers

November 9, 2010 at 12:31 PM

You can set the background color of a html document using java script as follows.

<script type="text/javascript">
document.body.bgColor="purple";
</script>

December 3, 2010 at 4:39 PM

Hi, You can go through www.w3schools.com for the HTML tutorial.

Thanks,









Related Tutorials/Questions & Answers:
HTML document's background color
HTML document's background color  How to set a HTML document's background color
div background color in html
div background color in html   How to change the background color of DIV in HTML
Advertisements
HTML - table background color.
HTML - table background color. Description : Here, you will see how to specifies the table back ground color in html page. The <table > is a html... the background color of table.  Code : <!DOCTYPE html PUBLIC "
uiscrollview background color
uiscrollview background color  Is it possible to set the uiscrollview background color in iPhone application
UITextfield Background Color
is ..it's showing a background color. Though my text field color is white. Can you please suggest.. , how can i remove the background color of text field. Thanks!   iPhone UITextField Background Color Set the text field background color
changing uiview background color
changing uiview background color  changing UIView background color in ios   self.view.backgroundColor = [UIColor colorWithRed:244.0f/255.0f green:230.0f/255.0f blue:183.0f/255.0f alpha:1.0f
jframe background color not showing
jframe background color not showing  jframe background color is not showing. please suggest.   Just add the background color to JPanel and then add it to JFrame. For example .. JFrame myFrame = new JFrame(); JPanel
Set Background Colors and Images in HTML
illustrates to set a background color in HTML. In this Tutorial, the code describe you an example that helps you to set background color in HTML. The code... of the element. The <bgcolor> in HTML depicts you the color background of web page
picture in background in a HTML
picture in background in a HTML  How is picture displayed in background in a HTML
HTML background images
HTML background images  How can I specify background images
changing Background Color
changing Background Color   ... change background color of a pdf file. You can change the background color... color) to set the background color of that chunk. Here we pass
pdf background color
pdf background color      ... Paragraph("Background color--->>roseinia.net"... the background of the pdf file as well as the size of a pdf file irrespective of the fact
HTML document
HTML document  How do I link to a location in the middle of an HTML document
Changing background color using JavaScript
Changing background color using JavaScript  Hi Sir Is there any way to change the background color using JavaScript ? Please mention code with your... below function to change the background color & call it wherever it needed
Setting bootstrap container background color
the background color of the container in bootstrap for a web page? Thanks   Hi, You can set the color using the following code: body { background-color... in the css. Above code sets the background color to white. Thanks
Javascript background color - Java Beginners
Javascript background color  Hi How to compare background color...; Hi Friend, If you want to change the background color of the textbox, try the following code: Change background Color function check
UIWebView Background Color
UIWebView Background Color If you wanted to change the background color on UIWebView in iPhone SDK, then you required to set the background color of UIWebView...). Where as setBackgroundColor will allow you to change the color of background area
include' a HTML document in another document.
include' a HTML document in another document.  I'm trying to `include' a HTML document in another document...Is there a way to do
HTML Color Code for White
HTML Color Code for White In this page you will find the hexadecimal color.... For most website white color is used as the background of the web page... at HTML color codes page.ADS_TO_REPLACE_1
How to set the Gradient Color as a background color for Java Frame?
How to set the Gradient Color as a background color for Java Frame?  How to set the Gradient Color as a background color for Java Frame
UITableView Background Color
UITableView Background Color To change the background color of UITableView...]; The above line will change the default background color into gray color. You can... changing the color of all the cells or table view background. But you can also draw
Change background color of text box - Java Beginners
Change background color of text box  Hi how can i change the background color to red of Javascript text box when ever user enters an incorrect value while on entering a correct value its background color should change green
How to remove the background color of bootstrap menu bar?
How to remove the background color of bootstrap menu bar?  Hi, What css can be used to remove the color of bootstrap menu bar? thanks   Hi, Use the following code: .navbar { background-image: url(/d2/images
how to color the Eclipse editor background programmatically?
how to color the Eclipse editor background programmatically?  I have to color specific portion(background) of the of the Eclipse editor by running... as start line number and end line number and do the color in background portion
JavaScript change background color automatically
JavaScript change background color automatically In this section, you will learn how to change the background color of the web page automatically. Now... the background color after every 5 seconds. Here is the code
how to change div background color in javascript
how to change div background color in javascript  how to change div background color in javascript ?   <div id="Name">   <div class="content">      <h2>Your Name here</h2>       <p>First
Java Servlet Change Background Color
Java Servlet Change Background Color You can provide an effective way to the web page by changing the background color of the web page. In servlet, you can do this by using javascript. Here, we are going to change the background color
Background color blocks all labels and textfields
Background color blocks all labels and textfields  I added background color but I dont see textfields and labels anymore, please help. What am I missing? (" JFrame f = new JFrame(); SchoolOption f1 = new SchoolOption(); Color c
Html framed document
Html framed document  How do I change the title of a framed document
how to change background color in dojo tab container - Framework
how to change background color in dojo tab container  how to change background color in dojo tab container
How to set iText pdf document background image - Java Beginners
How to set iText pdf document background image  Hi, I have created the pdf document using the iText classes. but i need to set the background image for this pdf document. there is way to set the background color, but i
Add color to background but I can't labels or textfields
Add color to background but I can't labels or textfields  Please help... = new JFrame(); SchoolOption f1 = new SchoolOption(); Color c = new Color(128,0,0); Container con = f.getContentPane
how to create menubar and the below background color/image in java swing
how to create menubar and the below background color/image in java swing  how to create menubar and the below background color/image in java swing
HTML Color Code for purple
HTML Color Code for purple In this page you will find the hexadecimal color.... HTML Purple color is of two types: Dark Purple Light Purple Here... look. See more at HTML color codes page
ModuleNotFoundError: No module named 'odoo10-addon-web-editor-background-color'
ModuleNotFoundError: No module named 'odoo10-addon-web-editor-background-color...: ModuleNotFoundError: No module named 'odoo10-addon-web-editor-background-color' How...-background-color' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'odoo10-addon-web-editor-background-color'
ModuleNotFoundError: No module named 'odoo10-addon-web-editor-background-color...: ModuleNotFoundError: No module named 'odoo10-addon-web-editor-background-color' How...-background-color' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'odoo11-addon-web-editor-background-color'
ModuleNotFoundError: No module named 'odoo11-addon-web-editor-background-color...: ModuleNotFoundError: No module named 'odoo11-addon-web-editor-background-color' How...-background-color' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'odoo12-addon-web-editor-background-color'
ModuleNotFoundError: No module named 'odoo12-addon-web-editor-background-color...: ModuleNotFoundError: No module named 'odoo12-addon-web-editor-background-color' How...-background-color' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'odoo9-addon-web-editor-background-color'
ModuleNotFoundError: No module named 'odoo9-addon-web-editor-background-color...: ModuleNotFoundError: No module named 'odoo9-addon-web-editor-background-color' How...-background-color' error? Thanks   Hi, In your python
Change Background color using Custom Tag
Change Background color using Custom Tag In this program, We will create a Custom Tag which changes the background color. JSP Custom Tags : Provide... : In this Example, We will create a Custom Tag which changes the background color
HTML color codes
HTML Color Codes In this tutorial we will show you how to get the different color codes for designing your HTML pages. You will be able to find the  hexadecimal color code by color name. We have also provided the tool to create
Change JPanel background color from mouse entered/exit event
Change JPanel background color from mouse entered/exit event  I have..."); and I got it to work that way but I couldn't get the tile JPanels to change color with setBackground(new Color());. Any suggestions would be greatly appreciated
HTML Color Codes
:5px 0px 5px 5px; } HTML Web color codes In this page we have created a list of most used HTML Web color codes. We have shown the color in the background of the table row. You can use copy the color code and use in your website
Send email as html with embedded images as background
Send email as html with embedded images as background  Hi, I am developing a PHP mailing application. I have to send image in the email as attachment. Give me solution for sending image in the email data. Thanks
How to set pdf background color.
How to set pdf background color. In this example, you will see how to set back ground color of pdf in struts2.  index.jsp <html>ADS...(200, 100, 100)); Document document = new Document(pageSize
HTML Document Creation
HTML Document Creation      ... Document Formatting Several tags provided by HTML allow the document..., VLINK, and ALINK attributes. * BGCOLOR-Sets the background color
background
background  how to add image as background to a frame
Use Velocity to generate HTML document
Use Velocity to generate HTML document       This Example shows you how to generate HTML... value and use these variable to generate HTML document ADS_TO_REPLACE_1  
php gd background color
Styles in HTML
To set the entire text of a HTML document to one style(e.g., color), we use...; The Style in HTML is used to format the html document with required style...; of the Document will be in <br>yellow color </body>

Ads