WWW::Mechanize::Plugin::DOM::Window - Window object for the DOM plugin
THIS MODULE IS DEPRECATED. Please use WWW::Scripter instead.
Returns the location object (see WWW::Mechanize::Plugin::DOM::Location). If you pass an argument, it sets the
hrefattribute of the location object.
Each of these calls the function assigned by one of the following methods:
Use these to set the functions called by the above methods. There are no default
promptfunctions. The default
alertprints to the currently selected file handle, with a line break tacked on the end.
Returns the navigator object. This currently has three properties,
You can pass values to
appVersionto set them.
- setTimeout ( $code, $ms );
This schedules the
$codeto run after
$msseconds have elapsed, returning a number uniquely identifying the time-out.
- clearTimeout ( $timeout_id )
The cancels the time-out corresponding to the
- open ( $url )
This is a temporary placeholder. Right now it ignores all its args except the first, and goes to the given URL, such that
->open(foo)is equivalent to
These three return the window object itself.
Returns the 'top' window, which is the window itself if there are no frames.
Returns the parent frame, if there is one, or the window object itself otherwise.
This returns the WWW::Mechanize object that corresponds to the window.
This returns the number of frames.
You can access frames by index or by name by using the window object as an array or hash, respectively.
The hash named
%WWW::Mechanize::Plugin::DOM::Window::Interface lists the interface members for the window object. It follows the same format as hashes within %HTML::DOM::Interface, like this:
( alert => VOID|METHOD, confirm => BOOL|METHOD, ... )
It does not include