Welcome to WebmasterWorld Guest from 54.145.208.64

Forum Moderators: open

Message Too Old, No Replies

hide webpage with javascript?

   
5:19 pm on Nov 30, 2004 (gmt 0)

10+ Year Member



The visitor starts on webpage A. Clicks on link - is redirected to webpage B. Webpage B has an automatic redirect to webpage C.

The visitor goes:
webpage A - webpage B - webpage C

The crux is that I want the visitor to get to webpage C, unaware that they have gone through webpage B.

Thus, I want the address in the url locator bar to be for webpage A at the start. Then move to that of webpage C, when the link is clicked. Without displaying the url of webpage B in the interim period.

HOW CAN I DO THIS? HELP!

I realise that there are flaws in the approach - but if someone could just suggest a way that I could stop Page B's url coming up in the locator bar. I would be very, very grateful.

Would be so grateful for any help.

9:56 pm on Nov 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try using frames.
2:37 am on Dec 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A visibility:hidden iframe might be simpler than a standard frames page. A loads in the top window, B loads in the hidden iframe and modifies top.window.location.href to load C in the parent.
1:38 pm on Dec 1, 2004 (gmt 0)

10+ Year Member



Thanks guys.

Am currently reading up on iframes like crazy as I don't know much about them. One thing that worries me at this point is that in my system:

Page A - Page B - Page C

If I have Page B as an iframe - I must code for it in Page A.

I have some javascript code on Page B that I want to hide. I don't want the visitor to be aware of the existance of Page B - such that my javascript will be protected (somewhat).

If I must code for Page B on Page A - my javascript is on Page A. Is not protected in the fashion that I am hoping for.

Have I got this wrong?

2:05 pm on Dec 1, 2004 (gmt 0)

10+ Year Member



I guess one possible solution would be if page B and page C have exactly the same url. However, I don't know anyway that this would be possible. A long shot - does anyone know? Bit pie in the sky maybe.
2:05 pm on Dec 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To have any real hope of hiding anything, you'll have to work with server-side scripts.