开发者

How can I get html code created by javascript?

开发者 https://www.devze.com 2023-03-12 18:26 出处:网络
I need to get ht开发者_运维百科ml code of a web site using c# (web browser or webrequest)but I have a problem for html code created by javascript.

I need to get ht开发者_运维百科ml code of a web site using c# (web browser or webrequest) but I have a problem for html code created by javascript.

actually I need View Generated Source of Web Developer plugin (its plugin of firefox)

how can i do it?

edit1: I found a solution using javascript:'' + window.document.body.outerHTML+ '' but it's not working in IE9


in google chrome you can view the source by click right on item and inspect element command fire fox and ie9 has such functionality in another way,In Ie by pressing F12 you can use developer tools and view sources


FireBug is a great plugin for Firefox that allows you to browse the DOM, including HTML generated dynamically by javascript.

0

精彩评论

暂无评论...
验证码 换一张
取 消