N
Nick
OK Guys and Gals,
I've got a script that does some work with the document object in
another frame.
This works fine until the other frame contains a document on another
domain. This of course produces a permission error.
I don't actually want to do anything with the document if the page is
on a different domain BUT I do want to detect this situation before it
occurs, and then allow my script to terminate peacefully instead of
producing an error.
How can I do this?
I suppose I could use IE's try and catch, but that means I'll still
have problems on other browsers.
All suggestions gratefully received.
Cheers
N
I've got a script that does some work with the document object in
another frame.
This works fine until the other frame contains a document on another
domain. This of course produces a permission error.
I don't actually want to do anything with the document if the page is
on a different domain BUT I do want to detect this situation before it
occurs, and then allow my script to terminate peacefully instead of
producing an error.
How can I do this?
I suppose I could use IE's try and catch, but that means I'll still
have problems on other browsers.
All suggestions gratefully received.
Cheers
N