# Mechanize - Altering a WWW::Mechanize::Page document

**URL:** <https://www.ruby-forum.com/t/mechanize-altering-a-www-page-document/87246>\
**Category:** Ruby\
**Created:** [March 1, 2007, 3:36am UTC](https://www.ruby-forum.com/t/mechanize-altering-a-www-page-document/87246 "2007-03-01T03:36:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![qYuri-us](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/58f4c7/32.png) [@qYuri-us](https://www.ruby-forum.com/u/qYuri-us)\
**Post date:** [March 1, 2007, 3:36am UTC](https://www.ruby-forum.com/t/mechanize-altering-a-www-page-document/87246/1 "2007-03-01T03:36:00Z")

</div>

Some web pages use Javascript to add a bit of crucial html to the DOM  
after  
the web page has been downloaded. Sometimes it’s trivial to make the  
modifications to the page as Javascript would have done. Is there a way  
for  
Mechanize to reload or reparse the WWW::Mechanize::Page document with  
the  
user-made changes with the same context as the original page?
