michaellunsford Posted October 2, 2006 Share Posted October 2, 2006 How to view the source of a page as the browser sees it AFTER javascript has done all it's changes? This would help me troubleshoot stuff sooo much faster.Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/22755-viewing-source-after-javascript-has-changed-it/ Share on other sites More sharing options...
FrOzeN Posted October 2, 2006 Share Posted October 2, 2006 In firefox you can go "View" -> "Select All", then right-click somewhere on the page and click "View Selection". I think (not entirely sure) the source it shows you is how firefox sees it, or at least mostly how it does anyway. Quote Link to comment https://forums.phpfreaks.com/topic/22755-viewing-source-after-javascript-has-changed-it/#findComment-102482 Share on other sites More sharing options...
Daniel0 Posted October 2, 2006 Share Posted October 2, 2006 Yeah it works. So in firefox press Ctrl+A (select all), right click and click on "View Selection Source".Edit: You can use FireFox' DOM inspector too. Quote Link to comment https://forums.phpfreaks.com/topic/22755-viewing-source-after-javascript-has-changed-it/#findComment-102518 Share on other sites More sharing options...
michaellunsford Posted October 2, 2006 Author Share Posted October 2, 2006 [quote author=FrOzeN link=topic=110247.msg445393#msg445393 date=1159808946]In firefox you can go "View" -> "Select All", then right-click somewhere on the page and click "View Selection". I think (not entirely sure) the source it shows you is how firefox sees it, or at least mostly how it does anyway.[/quote]Boo-yah! Now I can validate my javascript dynamic pages, too. This has been an increasing need with the javascript document.write of the <object> tag being forced upon us by the Eolas vs Microsoft law suit. Very very good news. Thanks again! Quote Link to comment https://forums.phpfreaks.com/topic/22755-viewing-source-after-javascript-has-changed-it/#findComment-102545 Share on other sites More sharing options...
fenway Posted October 3, 2006 Share Posted October 3, 2006 There's also an developer add-on for IE that gives you a "view partial source" option. Quote Link to comment https://forums.phpfreaks.com/topic/22755-viewing-source-after-javascript-has-changed-it/#findComment-102774 Share on other sites More sharing options...
michaellunsford Posted October 3, 2006 Author Share Posted October 3, 2006 thanks for the reply... Next time I boot windows I'll have to check out the IE developer options. Quote Link to comment https://forums.phpfreaks.com/topic/22755-viewing-source-after-javascript-has-changed-it/#findComment-102778 Share on other sites More sharing options...
fenway Posted October 3, 2006 Share Posted October 3, 2006 It doesn't say it's for IE6, but it still works. Quote Link to comment https://forums.phpfreaks.com/topic/22755-viewing-source-after-javascript-has-changed-it/#findComment-103097 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.