So essentially you are trying to construct a page that will, after it has been loaded, show a completely different URL than the one the page was originally loaded from? Should this be the case then it sounds very suspicious to me as it seems like an attempt of a
spoofing attack[
^].
Please tell us in more detail what it is you're actually trying to do.
If this turns out to be an attempt at hacking, you'll have no luck here on CP as we don't support this kind of behaviour.
Regards,
— Manfred