KDE 4.7 PyKDE API Reference

- KDE's Python API

# HTMLIFrameElement Class Reference

`from PyKDE4.khtml import *`

Inherits: DOM.HTMLElement → DOM.Element → DOM.Node
Namespace: DOM

## Detailed Description

Inline subwindows. See the <a href="http://www.w3.org/TR/REC-html40/present/frames.html#edef-IFRAME"> IFRAME element definition in HTML 4.0.

## Methods

| __init__ (self)
| __init__ (self, DOM.HTMLIFrameElement other)
| __init__ (self, DOM.Node other)
DOM.DOMString | align (self)
DOM.Document | contentDocument (self)
DOM.DOMString | frameBorder (self)
DOM.DOMString | height (self)
DOM.DOMString | longDesc (self)
DOM.DOMString | marginHeight (self)
DOM.DOMString | marginWidth (self)
DOM.DOMString | name (self)
DOM.DOMString | scrolling (self)
| setAlign (self, DOM.DOMString a0)
| setFrameBorder (self, DOM.DOMString a0)
| setHeight (self, DOM.DOMString a0)
| setLongDesc (self, DOM.DOMString a0)
| setMarginHeight (self, DOM.DOMString a0)
| setMarginWidth (self, DOM.DOMString a0)
| setName (self, DOM.DOMString a0)
| setScrolling (self, DOM.DOMString a0)
| setSrc (self, DOM.DOMString a0)
| setWidth (self, DOM.DOMString a0)
DOM.DOMString | src (self)
DOM.DOMString | width (self)

## Method Documentation

__init__ | ( |  | self ) |

__init__ | ( | self, |
|  | DOM.HTMLIFrameElement | other
| ) |  |  |

__init__ | ( | self, |
|  | DOM.Node | other
| ) |  |  |

DOM.DOMString align | ( |  | self ) |

Aligns this object (vertically or horizontally) with respect to its surrounding text. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-align-IMG"> align attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

DOM.Document contentDocument | ( |  | self ) |

Introduced in DOM Level 2

Returns the document this iframe contains, if there is any and it is available, a Null document otherwise. The attribute is read-only.

Returns:
  The content Document if available.

DOM.DOMString frameBorder | ( |  | self ) |

Request frame borders. See the <a href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-frameborder"> frameborder attribute definition in HTML 4.0.

DOM.DOMString height | ( |  | self ) |

Frame height. See the <a href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-height-IFRAME"> height attribute definition in HTML 4.0.

DOM.DOMString longDesc | ( |  | self ) |

URI designating a long description of this image or frame. See the <a href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-longdesc-IFRAME"> longdesc attribute definition in HTML 4.0.

DOM.DOMString marginHeight | ( |  | self ) |

Frame margin height, in pixels. See the <a href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-marginheight"> marginheight attribute definition in HTML 4.0.

DOM.DOMString marginWidth | ( |  | self ) |

Frame margin width, in pixels. See the <a href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-marginwidth"> marginwidth attribute definition in HTML 4.0.

DOM.DOMString name | ( |  | self ) |

The frame name (object of the target attribute). See the <a href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-name-IFRAME"> name attribute definition in HTML 4.0.

DOM.DOMString scrolling | ( |  | self ) |

Specify whether or not the frame should have scrollbars. See the <a href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-scrolling"> scrolling attribute definition in HTML 4.0.

setAlign | ( | self, |
|  | DOM.DOMString | a0
| ) |  |  |

see align

setFrameBorder | ( | self, |
|  | DOM.DOMString | a0
| ) |  |  |

see frameBorder

setHeight | ( | self, |
|  | DOM.DOMString | a0
| ) |  |  |

see height

setLongDesc | ( | self, |
|  | DOM.DOMString | a0
| ) |  |  |

see longDesc

setMarginHeight | ( | self, |
|  | DOM.DOMString | a0
| ) |  |  |

see marginHeight

setMarginWidth | ( | self, |
|  | DOM.DOMString | a0
| ) |  |  |

see marginWidth

setName | ( | self, |
|  | DOM.DOMString | a0
| ) |  |  |

see name

setScrolling | ( | self, |
|  | DOM.DOMString | a0
| ) |  |  |

see scrolling

setSrc | ( | self, |
|  | DOM.DOMString | a0
| ) |  |  |

see src

setWidth | ( | self, |
|  | DOM.DOMString | a0
| ) |  |  |

see width

DOM.DOMString src | ( |  | self ) |

A URI designating the initial frame contents. See the <a href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-src-FRAME"> src attribute definition in HTML 4.0.

DOM.DOMString width | ( |  | self ) |

Frame width. See the <a href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-width-IFRAME"> width attribute definition in HTML 4.0.