new page/forward in javascript

Posted by acidzombie24 on Stack Overflow See other posts from Stack Overflow or by acidzombie24
Published on 2010-05-17T07:30:58Z Indexed on 2010/05/17 8:40 UTC
Read the original article Hit count: 300

Filed under:
|
|

I am making a greasemonkey script and i would like a link to go forward and modify the current html and allow the user to click back to go to the original page.

How might i do this? using jquery + greasemonkey + javascript. Targeting firefox mostly.

-edit- http://jsfiddle.net/ seems to do it. If you write random html in the html section, hit run, change the html and hit run again. You'll be able to click back/forward to see the output change (however the html input box stays the same). I am using firefox to view this. Thats the effect i want.

it appears the magic is done on line 91. Is this submitting a form in a frame (perhaps the results frame?) and that is causing the movement in history?

88 run: function(e) {
89 e.stop();
90 Layout.updateFromMirror();
91 document.id(this.options.formId).submit();
92 this.fireEvent('run');
93 }, 

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript