DOM.HTMLLinkElement

KDE 4.5 PyKDE API Reference

- KDE's Python API

# HTMLLinkElement Class Reference

`from PyKDE4.khtml import *`

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

## Detailed Description

The LINK element specifies a link to an external resource, and defines this document's relationship to that resource (or vice versa). See the <a href="http://www.w3.org/TR/REC-html40/struct/links.html#edef-LINK"> LINK element definition in HTML 4.0.

## Methods
| __init__ (self)
| __init__ (self, DOM.HTMLLinkElement other)
| __init__ (self, DOM.Node other)
DOM.DOMString | charset (self)
bool | disabled (self)
DOM.DOMString | href (self)
DOM.DOMString | hreflang (self)
DOM.DOMString | media (self)
DOM.DOMString | rel (self)
DOM.DOMString | rev (self)
| setCharset (self, DOM.DOMString a0)
| setDisabled (self, bool a0)
| setHref (self, DOM.DOMString a0)
| setHreflang (self, DOM.DOMString a0)
| setMedia (self, DOM.DOMString a0)
| setRel (self, DOM.DOMString a0)
| setRev (self, DOM.DOMString a0)
| setTarget (self, DOM.DOMString a0)
| setType (self, DOM.DOMString a0)
DOM.StyleSheet | sheet (self)
DOM.DOMString | target (self)
DOM.DOMString | type (self)

## Method Documentation

__init__ | ( |  | self ) |

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

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

DOM.DOMString charset | ( |  | self ) |

The character encoding of the resource being linked to. See the <a href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-charset"> charset attribute definition in HTML 4.0.

bool disabled | ( |  | self ) |

Enables/disables the link. This is currently only used for style sheet links, and may be used to activate or deactivate style sheets.

DOM.DOMString href | ( |  | self ) |

The URI of the linked resource. See the <a href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-href"> href attribute definition in HTML 4.0.

DOM.DOMString hreflang | ( |  | self ) |

Language code of the linked resource. See the <a href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-hreflang"> hreflang attribute definition in HTML 4.0.

DOM.DOMString media | ( |  | self ) |

Designed for use with one or more target media. See the <a href="http://www.w3.org/TR/REC-html40/present/styles.html#adef-media"> media attribute definition in HTML 4.0.

DOM.DOMString rel | ( |  | self ) |

Forward link type. See the <a href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-rel"> rel attribute definition in HTML 4.0.

DOM.DOMString rev | ( |  | self ) |

Reverse link type. See the <a href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-rev"> rev attribute definition in HTML 4.0.

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

see charset

setDisabled | ( | self, |
|  | bool | a0
| ) |  |  |

see disabled

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

see href

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

see hreflang

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

see media

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

see rel

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

see rev

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

see target

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

see type

DOM.StyleSheet sheet | ( |  | self ) |

Introduced in DOM Level 2 This method is from the LinkStyle interface

The style sheet.

DOM.DOMString target | ( |  | self ) |

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

DOM.DOMString type | ( |  | self ) |

Advisory content type. See the <a href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-type-A"> type attribute definition in HTML 4.0.