Thursday, March 5, 2009

Transparent redirect (HTML)

Sometimes we have to create a redirect for a web application or a web site. Usually, the browser address bar change its text, so users see the redirection.

But there is a very simple way to redirect user to another site/domain without the change of the address bar: just create a page like this

<html>
    <head>
    </head>
    <frameset>
        <frame name="main" src="http://www.newdomain.it">
    </frameset>
    <body>
    </body>
</html>

PS: There are some other ways to do this, but all uses javascript. This is the only method that doesn't use scripts or other.

No comments: