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!

Redirection background color

Status
Not open for further replies.

meleric

Programmer
Joined
Aug 28, 2001
Messages
2
Location
CA
when I redirect html page to another one,
the background color is not the same as the site's background.

<HTML><BODY background=&quot;MyBackgroud.jpg&quot;>
<meta http-equiv=&quot;Refresh&quot; content=&quot;0 URL=MyUrl&quot;>&quot;;
</BODY></HTML>

What can i do to have the same background color ?

Thank's
 
Try putting the background color on the subquential HTML pages as the color of the site's background...?? I have not failed; I merely found 100,000 different ways of not succeding...
 
Assuming you are redirecting to the same domain - you can rest the body color.

document.body.backgroundColor = &quot;#00FF00&quot;

Assuming there is some reason why you can't do like Guju said - maybe you have some random colors or something.
But in order to do this, you need to get info to the next page - which invloves [most likely] a query string - which means the redirect page 'MyUrl' must be set up to respond.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top