2
   

Redirect HELP

 
 
Reply Wed 27 Aug, 2003 10:38 am
How do I make the following redirect work in Netscape (it works fine in IE). Also is there a way to create one page that lists all redirects in a site? Not domain to page but page to page.

<html>
<head>
<title>Weddle Redirect</title>
<script LANGUAGE="JavaScript">

function redirecter()
{
self.location.href="/weddle.shtml";
}

// -->
</script>

</head>

<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" bgcolor="#ffffff" onload="redirecter()">
<table>
<tr>
<td><a href="/weddle.shtml">Click here</a></td>
</tr>
</table>

</body>
</html>
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 2 • Views: 1,492 • Replies: 4
No top replies

 
BobbyDouglas
 
  1  
Reply Wed 27 Aug, 2003 10:47 am
I would use this:

Code:<html>
<head>
<title>Weddle Redirect</title>
</head>

<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" bgcolor="#ffffff">
<table>
<tr>
<td>
<SCRIPT LANGUAGE="JavaScript">
var name = navigator.appName
if (name == "Microsoft Internet Explorer")
url=("msie.html");
else
url=("netscape.html")
window.location=url('<a href="' + url + '">Click here!</A>');
</SCRIPT></td>
</tr>
</table>

</body>
</html>
0 Replies
 
Craven de Kere
 
  1  
Reply Wed 27 Aug, 2003 10:49 am
If I understand what he wants he doesn't want to redirect based on browser. He simply wants to redirect and it's not working for a particular browser.

Use this in your HEAD section:

Code:<META HTTP-EQUIV="REFRESH" CONTENT="0;URL=http://www.able2know.com">


You can't automatically have all of these listed but if you use htaccess redirects or another method you can.
0 Replies
 
dotdotslash
 
  1  
Reply Wed 27 Aug, 2003 12:39 pm
BobbyDouglas - in your response you list the pages msie.html and netscape.html are these to be replaced with the page name I am trying to redirect to?
0 Replies
 
Craven de Kere
 
  1  
Reply Wed 27 Aug, 2003 12:49 pm
Yes, his script will detect the browser (IE or Netscape) and direct those who have IE to one page and those who have Netscape to another.

You can replace those page names with pages for those broswers.

But it won't redirect automatically. It just shows a different link absed on the browser.

For what you seem to want to do the meta refresh is a better option.
0 Replies
 
 

Related Topics

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » Redirect HELP
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/26/2024 at 06:36:46