![]() Topic awaiting preservation: Crossdomain javascript... (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: The little green dot at the center of your monitor |
![]() Hi, |
Nervous Wreck (II) Inmate From: |
![]() You could test for the existance of something inside the iframe (e.g. the inner document) inside try/catch blocks. If your test fails (due to permission errors) you can catch the exception and know that the document inside the iframe is outside your domain. code: function isInDomain() {
|
Bipolar (III) Inmate From: The little green dot at the center of your monitor |
![]() AHA! There is try/catch in Javascript!! WOOHOO! |
Paranoid (IV) Inmate From: Sthlm, Sweden |
![]() Yes, at least from JavaScript 1.5 there is "try catch". |