Layer.load() (Method)

A method to load a new URL and resize a layer.


JavaScript - 1.2
Netscape - 4.0
JavaScript syntax:NmyLayer.load(aURL, aWidth)
Argument list:aURLA document to load into the layer
aWidthA new width value for the layer

This is an alternative way to load a new document into a layer. You can accomplish something similar by assigning a new value to the src property. This method will adjust the width of the layer at the same time.

This can work very effectively if you generate dynamic content via a javascript: URL as the value passed to the load() method.

In fact this works so much better, that the Layer.src property can be ignored for most purposes. This seems to work well with an absolutely positioned <DIV> container.


See also:javascript: URL, Layer.src