1HTMLDocument.setID(3kaya) Kaya module reference HTMLDocument.setID(3kaya)
2
3
4
6 HTMLDocument::setID - Sets the ID of a HTML element
7
9 Void setID( ElementTree element, String idname )
10
12 element The HTML element
13
14 classname The ID to set
15
17 Sets the ID of a HTML element. The ID is a unique identifier within the
18 document for the element. Setting IDs is useful for styling, scripting,
19 and creating anchors within a document.
20
21
22 h = addHeading(body,2,"Compiler options");
23 setID(h,"opts");
24 // appending #opts to the URL will now jump straight to this heading
25
27 Kaya standard library by Edwin Brady, Chris Morris and others
28 (kaya@kayalang.org). For further information see http://kayalang.org/
29
31 The Kaya standard library is free software; you can redistribute it
32 and/or modify it under the terms of the GNU Lesser General Public
33 License (version 2.1 or any later version) as published by the Free
34 Software Foundation.
35
37 HTMLDocument.setAttribute (3kaya)
38 HTMLDocument.setClass (3kaya)
39 HTMLDocument.setTitle (3kaya)
40
41
42
43Kaya December 2010 HTMLDocument.setID(3kaya)