Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URL redirection without changing the current url

Status
Not open for further replies.

10goracle

Programmer
Joined
Sep 11, 2007
Messages
5
Location
NL
Hi All,

I want to redirect to another url but the url location should not change.

example:
I have one site on click of one link from one of the page in this site ,it will get redirected to
Here requirement is after redirection browser should display the not .
 
I'd consider that a malware behaviour.

Cheers,
Dian
 
It is just an example given.It's not a realtime practise.
 
Maybe I didn't catch the idea. You're asking how to do that or is just an example and the question is anoher?

Cheers,
Dian
 
I have used frames to do it, but, now I want to do it using java script.

Kindly help.

 
I agree with Diancecht about that being deceptive/malware. Other than using frames, I can't think of any way to deceive the browser into displaying one URL when the actual URL is another.

You could use page scraping to get the contents of another page and insert it into the current page, but that would use server-side scripting (and I use Javascript ASP for that myself) or possibly AJAX.

Lee
 
I'd be dissapointed it there's a way to do it: I don't want to enter my personal data in a page thinking it's for example, my bank page while I actually was redirected ...

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top