Automatic Hyperlinking?

  • Jack4522
  • Born
  • Born
  • Jack4522
  • Posts: 1
  • Loc: Huntington Beach, CA

Post 3+ Months Ago

Hello,
I’m using an old version on FrontPage (98). I would like to put a page on a web site that automatically goes to a different page. For example, let’s say that I have a page that appears in the results of a search engine. Then a person clicks on that page in the search engine. What I want to happen next is for the person to actually go to a different page. So, maybe for a microsecond they go to the original page but then they are automatically redirected to a different page. How do I do that?
Thank you,
Jack Tyler
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

You do do that in PHP if the following is the only thing that you have on that page.
PHP Code: [ Select ]
<?php
header("Location: http://www.url.com<!-- m -->");
?>
  1. <?php
  2. header("Location: http://www.url.com<!-- m -->");
  3. ?>

That would send the user immediately to another page/site.

Or, you can use meta redirect.
HTML Code: [ Select ]
<html>
<head>
<title>Hi, You are being redirected</title>
<meta http-equiv="Refresh" content="4;url=http://www.domain.com">
</head>
<body>
<p>Please wait while you are being redirected.<br>
If you are not redirected, please click <a href="http://www.domain.com">Here</a></p>
</body>
</html>
  1. <html>
  2. <head>
  3. <title>Hi, You are being redirected</title>
  4. <meta http-equiv="Refresh" content="4;url=http://www.domain.com">
  5. </head>
  6. <body>
  7. <p>Please wait while you are being redirected.<br>
  8. If you are not redirected, please click <a href="http://www.domain.com">Here</a></p>
  9. </body>
  10. </html>

Hope that helped :)
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

Search engines frown upon this quite a bit, however. Don't be surprised if your pages stop showing up :)
  • qtajaya
  • Novice
  • Novice
  • User avatar
  • Posts: 24
  • Loc: UK

Post 3+ Months Ago

Another option is using Javascript
HTML Code: [ Select ]
<script language="JavaScript">
window.location="newpage.html";
</script>
  1. <script language="JavaScript">
  2. window.location="newpage.html";
  3. </script>


or if you want to put a delay for 3 seconds (=3000 miliseconds):
HTML Code: [ Select ]
<script language="JavaScript">
setTimeout("window.location='newpage.html';",3000);
</script>
  1. <script language="JavaScript">
  2. setTimeout("window.location='newpage.html';",3000);
  3. </script>


Both code above can be inserted inside <HEAD> or <BODY>.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 73 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.