Help Community Login:
STaRDoGG's picture
From:
Olympus
STaRDoGG
Head Mucky MuckJoined the Dark SidePremium Member (Gold)I'm a Code Monkey!The Steel CurtainI use FirefoxI use Google ChromeI use Internet ExplorerI use SafariLinux UserMac UserWindows UserI donated to GeekDrop simply because I love it!Booga Booga BoogaI took a bite of the AppleFormer Phrozen Crew MemberI'm MagicMember of VileThe Dr. put the stem on the apple!The JokerSomeone thinks you're udderly delightful!
Relationship Status:
Engaged
Joined: 01/14/2009
Posts: 2399
Drops: 2818
Mood: Content
Re: How Do I Redirect To Another Page or Website?

A simple redirect can be done using plain HTML, with the "Meta Refresh" tag. You have 2 basic options; just refresh your own page, or redirect the surfer to some other page or website.

It goes in the Meta area of your page, which is within the Head tags.

Here's an example of sending someone to google.com from a page on your site:

<html>
<head>
<meta http-equiv="refresh" content="10;url=http://www.google.com" />
<title>And awaaaay we gooo!</title>
</head>
<body>
This is where the rest of your page code goes.
</body>
</html>

The number in the "Content" parameter is the amount of seconds the page will sit idle before redirecting the surfer to the page you chose. In this case 10 seconds. You usually want to give the surfer a chance to read what's going on before sending them off somewhere else, unless you don't actually want them on this page at all, and just want to send them to somewhere else instantly. For example, you registered a new domain name where your site is now at instead, you could set the Content parameter to 0, which means as soon as the surfer hits that page they will instantly be sent to your new page.

The URL parameter is where you enter the URL to where you want the surfer to go once the Content timer "dings".

If you want to simply refresh the same page, for example, you have some sort of dynamic content, you just leave out the semi-colon and URL parameter, like so:

<html>
<head>
<meta http-equiv="refresh" content="10" />
<title>This is my page</title>
</head>
<body>
The rest of your page.
</body>
</html>


Never play leapfrog with a unicorn

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <embed> <object> <strike> <caption> <thead> <th> <param> <style> <BGSOUND> <color> <center> <font-size> <script>
  • You may quote other posts using [quote] tags.
  • Filtered words will be replaced with the filtered version of the word.
  • Textual smileys will be replaced with graphical ones.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <csharp>, <css>, <html4strict>, <javascript>, <php>, <vb>, <vbnet>, <xml>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • Lines and paragraphs break automatically.
  • You can use BBCode tags in the text.

More information about formatting options



NOT LOGGED IN

You are NOT logged in

NOTE: You are commenting as an anonymous guest. You will NOT immediately see your comment, but it's there. Please do not try to re-send the same comment. If you'd like to see it immediately, please login or create an account (no worries, it's free).


facebook codes exploits tips tricks Phrozen Crew
All contents ©Copyright GeekDrop 2009-2012
TOS | Privacy Policy