Solved

Will meta redirect work outside of html header section?

Posted on 2012-04-09
7
967 Views
Last Modified: 2012-08-13
<meta http-equiv="Refresh" content="5; url=http://www.quackit.com/html/tags.cfm">

Can I put this at the begining of my html body tag section?  I thought I've see this outside of the Header section and it still work.  thank you.
0
Comment
Question by:lapucca
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 37824348
But why do you want to put it in body tag, when it works in head tag?
0
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 250 total points
ID: 37824359
another way to do the same thing would be put a timer event in the script tag

<script>
  setTimeout(function(){
   location.href = location.href;
}, 3000);
</script>

you can add above snippet anywhere in the html document, and it will simply reload the current page every 3 second
0
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 250 total points
ID: 37824360
Even if it works, it belongs in the <head> section.  Why do you want to put it somewhere else?  Any function that is looking for it is looking in the <head> section.  Browsers and servers don't have to pay attention to code that is not formatted right although they often try to make it work anyway.
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:lapucca
ID: 37825406
We're using CMS system.  For some pages I want to redirect.  I don't want to put it at the header of the common master page.    But isn't it a common practice to put in a redirect message in case the redirect doesn't work out in like a minute or 2?  Maybe it's because of type of browsers issue?
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 37825438
No, it's not a common practice.  Never seen it.
0
 

Author Comment

by:lapucca
ID: 37826132
I meant, a common practice to put in a web page with message to click somewhere in case the redirect doesn't take place.  I see that several times before.  I'm sure you have too.  

Anyway, back to the meta tag for http-equiv.  Would that work if I put in outside of the header section and as part of the body section?  Thank you
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 37826563
The only place I have seen anything like that is for downloads.  I guess I don't know about the redirect because I've never done it that way.
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question