Closed Thread Icon

Topic awaiting preservation: Slime's helpful code? for opera? Pages that link to <a href="https://ozoneasylum.com/backlink?for=8203" title="Pages that link to Topic awaiting preservation: Slime&amp;#039;s helpful code? for opera?" rel="nofollow" >Topic awaiting preservation: Slime&#039;s helpful code? for opera?\

 
Author Thread
dk01
Bipolar (III) Inmate

From: dk's house of love
Insane since: Oct 2001

posted posted 06-04-2002 16:50

Ok I think it was Slime that provided this useful code but I am not sure. It lists all the elements under an object. It works like a charm in IE and NS6 but it does not display anything in Opera 6. I was wondering if there might be a way to acheive the same results for Opera as for the other browsers.
Here's the code I am using:

code:
<script language="javascript">
var msg = '';
var obj = document;
for (prop in obj)
{
msg += prop + " = " + obj[prop] + "\n<br />";
}
document.write(msg);
</script>


Thanks,
-dk

- can't decide? have another drink.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 06-04-2002 19:49

Doesn't display *anything* in Opera? Wow, that's annoying. Are you sure the object you used it on has properties?

It's probably just an Opera bug. I doubt there's a workaround... sometimes you just have to guess at things.

dk01
Bipolar (III) Inmate

From: dk's house of love
Insane since: Oct 2001

posted posted 06-04-2002 22:05

Yeah I am using it with the document object so I am almost positive it should have some properties.
Oh well. Still a great script.
-dk

- can't decide? have another drink.

« BackwardsOnwards »

Show Forum Drop Down Menu