polyhedron
polyhedron

Reputation: 1590

Is there a way to get document and window properties in chrome

Is there a way to get document and window properties in the chrome developer toolbox?

I don't see it in the element tab of the developer toolbox. This would be really handy when troubleshooting jquery.offset problems

While were at it we might as well discuss this in firefox 4+

Thanks

Upvotes: 1

Views: 3681

Answers (2)

jaredwilli
jaredwilli

Reputation: 12348

You actually can just type in the devtools console (F12 on Windows or Cmd+Alt+ on Mac):

window // logs the window object
document // logs the document object

Upvotes: 1

serg
serg

Reputation: 111335

Try typing in the console:

console.dir(window) //just "window" would work too
console.dir(document)

Upvotes: 3

Related Questions