Father Chrysostomos > WWW-Mechanize-Plugin-JavaScript > WWW::Mechanize::Plugin::DOM::Location

Download:
WWW-Mechanize-Plugin-JavaScript-0.010.tar.gz

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

WWW::Mechanize::Plugin::DOM::Location - Location object for the DOM plugin

VERSION ^

Version 0.014

THIS MODULE IS DEPRECATED. Please use WWW::Scripter instead.

METHODS ^

hash
host
hostname
href
pathname
port
protocol
search

Each of these returns or sets the corresponding part of the URI. (Actually, href refers to the whole thing, not just a part.) If you set one of these, it tells the Mech object to go to another page.

reload

Does what it says.

replace ( $new_uri )

Replaces the current page in Mech's history with $new_uri, which it tells Mech to go and fetch.

Bug: This doesn't work properly on the first page. It simply adds to history.

SEE ALSO ^

-

WWW::Mechanize

-

WWW::Mechanize::Plugin::DOM

-

WWW::Mechanize::Plugin::DOM::Window

syntax highlighting: