![]() Topic awaiting preservation: Crossdomain javascript... (Page 1 of 1)  | 
  |
|---|---|
| 
       Bipolar (III) Inmate From: The little green dot at the center of your monitor  | 
    
       
  posted 08-20-2003 17:25
      
      Hi,  | 
  
| 
       Nervous Wreck (II) Inmate From:   | 
    
       
  posted 08-20-2003 22:27
      
      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  | 
    
       
  posted 08-21-2003 09:07
      
      AHA! There is try/catch in Javascript!! WOOHOO!  | 
  
| 
       Paranoid (IV) Inmate From: Sthlm, Sweden  | 
    
       
  posted 08-21-2003 09:16
      
      Yes, at least from JavaScript 1.5 there is "try catch".  |