behavior: frame

Standard behavior of <frame> element.

After loading of document into the frame its root element (html) will be set as a single child of the frame element as if it was declared this way:

  ...
  <frame src="something.htm"> 
     <html> <!-- root node of something.htm -->
       ... 
     </html>
  </frame>
  ...

Elements

that have this behavior applied by default (see master_style_sheet):

  • <frame>

Attributes

that this behavior knows about:

  • src=“url.html” - url of the document that will be loaded into this frame.
  • content-style=“url.css” - url of style sheet that will be appended to styles defined in the document. That allows host to [re-]define some styles defined in the document.

While loading frame element gets :busy flags that can be used for presenting load-in-progress state.

Methods

The frame behavior supports following xcall() methods (see dom::element::xcall() function):

  • xcall(“load”, url:string) - starts loading content of the url into the frame;
  • xcall(“clear”) - clears content of the frame (by loading blank document);

Note that in CSSS! or TIScript/Sciter you can access these methods simply as:

theFrame.load("http://something.com");
h-smile/built-in-behaviors/frame.txt · Last modified: 2009/12/12 13:57 by andrew
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0