收录日期:2020/10/28 10:40:49 时间:2010-09-07 02:21:29 标签:javascript,iframe,gmail

I am using iframe to open any other page into my website but when i use gmail then its redirect to my top page, so how to stop gmail to redirect

You can't. Gmail has a frame buster script that prevents it from running inside a frame. You could try busting the frame buster, but that may not work either depending on how google implements the frame buster.

Relevant: http://stackoverflow.com/questions/2181439/how-to-stop-gmail-from-maximizing-an-iframe