Reputation: 81
I am trying to run following HTML & JavaScript Code in HTML box in google sites, but running into this error, "0+0: folding element body into parent" and no success. Any ideas? Thanks
<html>
<head>
<meta http-equiv="refresh" content="3;url=http://www.somewhere.com/" />
</head>
<body>
<h1>Redirecting in 3 seconds...</h1>
</body>
</html>
Source: Redirect website after certain amount of time
Upvotes: 2
Views: 295
Reputation: 27405
Use the "URL Redirector" gadget as instructed here: redirect - K8OMS Help Site
Add URL Redirector Gadget to your page.
- Edit page
- Insert
- More Gadgets
- Search for URL Redirector
- Select it
- Configure it with the URL to redirect to and the number of seconds (be sure to include the whole URL including the http://)
also, after 3. More Gadgets
be sure to click Public
then search
Upvotes: 1
Reputation: 1989
Try doing a javascript function that runs when the body loads. Use the setTimeout() function. This'll probably give you more control over your redirection as well, so you can play around with it :)
Upvotes: 0