?
Solved

Will meta redirect work outside of html header section?

Posted on 2012-04-09
7
Medium Priority
?
977 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:Gurvinder Pal Singh
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:
Gurvinder Pal Singh earned 1000 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 1000 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
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

777 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