Forum Moderators: open

Message Too Old, No Replies

error handling in html

error

         

rsennat

7:49 pm on Nov 16, 2005 (gmt 0)



hi all,

In case of any errors in the functionality, im throwing an error, which is displayed in the current frame.

But i need error to be displayed in the beginning of the page NOT the frame.

So how this can be achieved.

thanks
rsennat

JAB Creations

12:41 am on Nov 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi rsennat and welcome to WebmasterWorld!

You would need JavaScript in order to detect whether a page is displayed in a frame or not.

You should post in the JavaScript forum (or this thread should be moved).

<!--
if (top.location == location) {
document.writeln('<span>you're not in a frame</span>');
};
//-->