I want to redirect to another page from 1 page without showing the contents of this page using javascript / jquery.
So, for example, I would either type or come from a search engine to a page on my site, say www.mysite.com/aaa/
, and I need to redirect to www.mysite.com/bbb/
without showing the content www.mysite.com/aaa/
.
The server side is asp.net, and I can do it with Response.Redirect
, but I don't want to change the code.
From my limited knowledge, I cannot use document.ready
or window.load
, since both will load the contents of the page in the browser before being redirected.
I do not know about any other thing that would help me with this. I tried a hard search, but could not get anything useful.
I have something here . I can get this in the header, but right at the top of the header may not be possible. Plus the answer does not look very convincing. However, you can try and update this question with conclusions.
Please, help!
Thanks in advance!
source
share