redirect question
- Started
- Last post
- 4 Responses
- Sep
Dear Sirs, Madams,
I need to make a html-page which looks fine when viewed in an I-frame, but redirects to another page when accessed directly. I think it's possible, but I can't find the code I'm looking for.
If anyone could help me out, that would be fantastic.
- heavyt0
jam this JS in the page:
if(!window.frameElement)
window.location = 'yournewurl';
- thejudders0
i-frames are such a bad idea. You should really forget about working with them and create your page with CSS and use divs not frames.
It is really easy to do oce you learn. Writting CSS code and xHTML is easier than HTML 4.
- CALLES0
redirect question?
Sep
(Mar 8 07, 11:05)
- Sep0
Heavyt, you're a lifesaver. Thanks.
Thejudders, you're annoying as hell. Because you're right. I'm not a professional webdesigner, but I'm slowly learning the css and xml skills in my free time. I'll get there, but I needed to make some changes on a site i've done ages ago. Didn't feel like breaking it all down and start over. Still, you're right.
CALLES, that was kinda funny.
Kisses.