iWeb FAQ - Redirect

iWebFAQ.org

 

How can I redirect people from one of my pages to another page maybe even to a page of an external website? How can I make a redirect in iWeb?

La stessa pagina in italiano                             Die gleiche Seite auf Deutsch
 


Sometimes you need to redirect your visitors automatically from one page to another. Here you find how to achieve that.



Chapter 1: Instant redirect

Chapter 2: Redirect with time delay




Chapter 1: Instant redirect


1. Copy & paste the following code in an HTML Snippet


<script type="text/javascript">

parent.location.replace('url of the external site');

</script>


2. Replace "url of the external site" with the url of the external site and that's it.



Chapter 2: Redirect with time delay


1. Copy and paste the following code into an HTML Snippet


<script type="text/javascript">

var url ='url of the page';

var delay = 4;

var d = delay * 1000;window.setTimeout ('parent.location.replace(url)', d);

</script>


2. Replace url of the page with the url of the page you want people to be redirected to

The number 4 in the code stands for the delay time of the redirection, you can change it to fit your case




This FAQ is also discussed in my iWebFAQ.org E-Book (sample)


iWebFAQ.org - Tutorials, Tips & Tricks is made with iWeb and for iWeb.

It’s an EBookStoreToday.com company. It’s presented by Cédric Giger and hosted by HostGator.


Thank you for visiting and supporting my website,

- Cédric -


 

 

Share/Bookmark

Share/Bookmark