How to redirect the Iframes

Results 1 to 2 of 2

Thread: How to redirect the Iframes

  1. #1
    vaishnavi Guest

    Default How to redirect the Iframes

    I have one asp page(Asp1) in which i have an Iframe whose source is an other asp page(Asp2).Now if any error is occured in Asp2 then i want to redirect the page to Errorscreen.i.e i want to redirect it from Asp2 as well as Asp1.Can you please tell me how to do that?

  2. #2
    Join Date
    Dec 1969

    Default RE: How to redirect the Iframes

    you will need to write some javascript <BR>like this at the top of the page asp2(the iframe)<BR><BR>on error response.write "&#060;script language=&#039;javascript&#039;&#062;<BR>parent.lo cation=&#039;newlocation.asp&#039;&#060;/script&#062;"<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts