Home > Archive > dBASE Web Applications > April 2005 > Javascript to redirect visitors to another web page









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Javascript to redirect visitors to another web page
Jean-Pierre Martel

2005-04-04, 8:03 pm


With the NG Search Engine, I was not been able to find how to redirect
visitors to another web page on the same site. Hereunder is the solution
that I've found.

Below is the HTML code of the derelict web page. That page is located in
the root folder of my site. The JavaScript redirects visitors accessing
that web page to a newer version located in a subfolder.

Jean-Pierre Martel, editor
The dBASE Developers Bulletin

====================
========

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="Javascript" type="text/javascript">
<!-- Hide script
//<![CDATA[
window.location.href="./sub_folder/new_web_page.htm"
//]]> End script hiding -->
</script>
</head>
<body>
</body>
</html>

====================
========
To see the Javascript in action:
http://www.jpmartel.com/S_Paris.htm

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com