WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Accespted Redirection Using JavaScript on Tue May 25, 2010 7:13 pm

iJerick


Registered Member
Registered Member

Redirection Using JavaScript
How to use javascript to create redirection pages


Hey, This is another type of redirecting page..

Here is the html code of the page..
Code:
<html>
<head>
<title>The Title</title>
</head>
<body>
<h1>The Page Header</h1>
<p>Paragraph</p>
</body></html>


and if you want to redirect it..

Kindly paste this code in anywhere you want..

Code:
<script>top.location='http://www.yourwebsiteurl.com/';</script>


and this is what code look like..


Code:
<html>
<head>
<title>The Title</title>
<script>top.location='http://www.yourwebsiteurl.com/';</script>
</head>
<body>
<h1>The Page Header</h1>
<p>Paragraph</p>
</body></html>


Note: Change the "http://www.yourwebsiteurl.com/" to the page that you want to redirect the page..

~ iJerick

Notice : This tutorial is copyrighted by WebArtz Forum. You may not publish it on anywhere without written permission from the administrators.

2Accespted Re: Redirection Using JavaScript on Wed May 26, 2010 8:44 am

Joel


Registered Member
Registered Member
Great tutorial. Easy and simple Smile

But there's another code that we also can use.
Code:
    <meta http-equiv=refresh content=0;url=http://www.forumotion.com>


all the best!

http://www.advertisehotspot.info/

3Accespted Re: Redirection Using JavaScript on Wed May 26, 2010 9:13 am

iJerick


Registered Member
Registered Member
Yeah.. But this one is the another type of redirecting page..

4Accespted Re: Redirection Using JavaScript on Sun Jun 06, 2010 6:40 am

iJerick


Registered Member
Registered Member
bump

5Accespted Re: Redirection Using JavaScript on Sun Jun 06, 2010 4:17 pm

Fellon


Registered Member
Registered Member
Great tutorial, iJerick!

http://revoken.deviantart.com/

6Accespted Re: Redirection Using JavaScript on Sun Jun 06, 2010 9:34 pm

private bob4


Registered Member
Registered Member
Perfect if you have a new forum, and you want people to be redirected to it, you can make your forum under construction and use this code!

7Accespted Re: Redirection Using JavaScript on Sun Jun 06, 2010 9:49 pm

Green CoW


Registered Member
Registered Member
Then I prefer using .htaccess way instead.

8Accespted Re: Redirection Using JavaScript on Sun Jun 06, 2010 10:27 pm

private bob4


Registered Member
Registered Member
Green CoW wrote:Then I prefer using .htaccess way instead.

But for free hosts like Forumotion that don't allow .htaccess.

9Accespted Re: Redirection Using JavaScript on Mon Jun 07, 2010 12:12 am

Green CoW


Registered Member
Registered Member
private bob4 wrote:But for free hosts like Forumotion that don't allow .htaccess.

Might be true, but everyone aren't using free hosts.

10Accespted Re: Redirection Using JavaScript on Mon Jun 07, 2010 8:16 pm

ankillien


Administrator
Administrator
Thanks for your contribution Very Happy

Tutorial Accepted

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum