Cheng Mega Cheng Mega - 1 year ago 112
Javascript Question

Can't get element in Chrome Dev Tools unless I inspect it manually

I wanna retrive a table in this page,and do something

however I cant getElementById directly in console before I use chrome inspecter to select it.

I cant access to the source code
so what should i do?

following screenshot show my issue

Cannot access to
cannot access to

Use Chrome Inspector and clicked on the page .now I cant get this element
can access it now

Answer Source

In your first screenshot your console selector is "top", in your second screenshot the selector is "zhuti(content.aspx)" - that could indicate that element is not accessible in top document (maybe it is in an iframe?)

It would be helpful if you provide html or link to source page.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download