Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2012 Google Inc.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License"); you may not
   * use this file except in compliance with the License. You may obtain a copy of
   * the License at
   * 
   * http://www.apache.org/licenses/LICENSE-2.0
   * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  * License for the specific language governing permissions and limitations under
  * the License.
  */
 package elemental.html;
 
 import  elemental.html.*;
 
 import java.util.Date;

DOM body elements expose the HTMLBodyElement (or HTML 4 HTMLBodyElement) interface, which provides special properties (beyond the regular element object interface they also have available to them by inheritance) for manipulating body elements.
 
 public interface BodyElement extends Element {


  
Color of active hyperlinks.
 
   String getALink();
 
   void setALink(String arg);


  

URI for a background image resource.

Note: Starting in Gecko 7.0 (Firefox 7.0 / Thunderbird 7.0 / SeaMonkey 2.4) , this value is no longer resolved as a URI; instead, it's treated as a simple string.
 
 
   void setBackground(String arg);


  
Background color for the document.
 
 
   void setBgColor(String arg);


  
Color of unvisited links.
 
   String getLink();
 
   void setLink(String arg);


  
Reflects the onbeforeunload HTML attribute value for a function to call when the document is about to be unloaded.
 
 
   void setOnbeforeunload(EventListener arg);


  

Exposes the window.onblur event handler to call when the window loses focus.

Note: This handler is triggered when the event reaches the window, not the body element. Use addEventListener() to attach an event listener to the body element.
 
 
   void setOnblur(EventListener arg);


  

Exposes the window.onerror event handler to call when the document fails to load properly.

Note: This handler is triggered when the event reaches the window, not the body element. Use addEventListener() to attach an event listener to the body element.
 
 
   void setOnerror(EventListener arg);


  

Exposes the window.onfocus event handler to call when the window gains focus.

Note: This handler is triggered when the event reaches the window, not the body element. Use addEventListener() to attach an event listener to the body element.
  void setOnfocus(EventListener arg);


  
Reflects the onhashchange HTML attribute value for a function to call when the fragment identifier in the address of the document changes.
  void setOnhashchange(EventListener arg);


  

Exposes the window.onload event handler to call when the window gains focus.

Note: This handler is triggered when the event reaches the window, not the body element. Use addEventListener() to attach an event listener to the body element.
  void setOnload(EventListener arg);


  
Reflects the onmessage HTML attribute value for a function to call when the document receives a message.
  void setOnmessage(EventListener arg);


  
Reflects the onoffline HTML attribute value for a function to call when network communication fails.
  void setOnoffline(EventListener arg);


  
Reflects the ononline HTML attribute value for a function to call when network communication is restored.
  void setOnonline(EventListener arg);


  
Reflects the onpopstate HTML attribute value for a function to call when the user has navigated session history.
  void setOnpopstate(EventListener arg);


  
Reflects the onresize HTML attribute value for a function to call when the document has been resized.
  void setOnresize(EventListener arg);


  
Reflects the onpopstate HTML attribute value for a function to call when the storage area has changed.
  void setOnstorage(EventListener arg);


  
Reflects the onunload HTML attribute value for a function to call when when the document is going away.
  void setOnunload(EventListener arg);


  
Foreground color of text.
  void setText(String arg);


  
Color of visited links.
  void setVLink(String arg);
New to GrepCode? Check out our FAQ X