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

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 Tue May 25, 2010 8:43 pm

iJerick

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 Wed May 26, 2010 10:14 am

Joel

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 Wed May 26, 2010 10:43 am

iJerick

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

4Accespted Re: Redirection Using JavaScript Sun Jun 06, 2010 8:10 am

iJerick

iJerick
Registered Member
Registered Member
bump

5Accespted Re: Redirection Using JavaScript Sun Jun 06, 2010 5:47 pm

Fellon

Fellon
Registered Member
Registered Member
Great tutorial, iJerick!

http://revoken.deviantart.com/

6Accespted Re: Redirection Using JavaScript Sun Jun 06, 2010 11:04 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 Sun Jun 06, 2010 11:19 pm

Green CoW

Green CoW
Graphic Designer
Graphic Designer
Then I prefer using .htaccess way instead.

8Accespted Re: Redirection Using JavaScript Sun Jun 06, 2010 11:57 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 Mon Jun 07, 2010 1:42 am

Green CoW

Green CoW
Graphic Designer
Graphic Designer
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 Mon Jun 07, 2010 9:46 pm

ankillien

ankillien
Administrator
Administrator
Thanks for your contribution Very Happy

Tutorial Accepted

Sponsored content


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