Forum Moderators: open

Message Too Old, No Replies

Webkit does not break out of frames!

         

JAB Creations

4:14 pm on Nov 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



IE4 understands this but Webkit/Safari 3.0.4 does not. I need a working break out of frames JavaScript to work for Webkit. Here is what should but is not working...

- John

if (top.location!= location) {top.location.href = document.location.href;}

JAB Creations

4:22 pm on Nov 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Never mind, I found a snippet that does work, here it is for the sanity of those following my footsteps...

if (window!= top) {top.location = location.href;}