Click to See Complete Forum and Search --> : redirecting a web page


complete
03-07-2008, 04:09 AM
I did this once long time ago when I was first learning about HTML. But now I have forgotten how it is done. There is a way of having one HTML page redirecting and loading another page. I think it is done on the <body> tag. I remember it is something like <body onload=.... Does anyone know what I am talking about?

ogsolution
03-07-2008, 04:25 AM
There are a few ways you can do this but the body onload way looks like this...

<body onload="javascript:document.location = 'http://ogsolution.com'">

ray326
03-07-2008, 09:41 AM
I think you'd be better off with the meta http-equiv refresh approach.