Feature Request: Javascript Hyperlinks
Posted: Fri Oct 30, 2009 2:28 pm
Clicking on a javascript hyperlink should be treated in the same as clicking on a placeholder. Its rather annoying to have to temporarily enable / reload, just to navigate away from a page. Ideally, the page permissions should not change, and other denied javascript on the page should not run. reuters.com is a decent example. Most articles on the site have a continue link at the bottom that is in javascript.
While acknowledging my complete lack of knowledge on how this stuff works internally, I see the process as follows:
1. trap hyperlink clicks that lead to javascript errors and pop a noscript "temporarily allow" dialog.
2. add javascript to the document (except for naked javascript not in a function), but don't reload, so that unrelated events don't fire.
3. reinject the javascript in the hyperlink
4. remove the js added in step 2.
While acknowledging my complete lack of knowledge on how this stuff works internally, I see the process as follows:
1. trap hyperlink clicks that lead to javascript errors and pop a noscript "temporarily allow" dialog.
2. add javascript to the document (except for naked javascript not in a function), but don't reload, so that unrelated events don't fire.
3. reinject the javascript in the hyperlink
4. remove the js added in step 2.