Wired - Printer Friendly Redirect

By Julien Couvreur Last update Jul 20, 2005 — Installed 1,102 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 4 posts, 4 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Netjeff Scriptwright

You can fix the problem with the back button behavior by changing line 42 from:

document.location.href = res.snapshotItem(0);

to

document.location.href.replace( res.snapshotItem(0) );

 
Julien Couvreur Script's Author

That's a good point. I need to think more about it to find a solution.

 
foobaz User

This works and it's cool. Only one problem. Hitting the back button goes to non-print version which triggers this script to go to the print version. You could just disable the redirect the second time going to the same page.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel