Javascript Reference
Categories: layer

javascript layer load( )

@March 15, 2008, 1:22 a.m.
load( )NN |4| IE n/a Chrome/Safari/DOM n/a  

load("URL", newLayerWidth)

  

This method lets you load a new document into a layer object. It does not work properly in Navigator 4 for ilayer elements. The existing document is unloaded from the layer, but the new one does not load as you'd expect. There is no satisfactory workaround except to transform the element into a layer.

 
Parameters
 
  • String value of the complete or relative URL of the document to be loaded into the layer.
  • Integer value in pixels of a resized width of the element to accommodate the new content.
 
Returned Value

Boolean value: true if the document loading was successful.


Powered by Linode.