2

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

Rubén
  • 34,714
  • 9
  • 70
  • 166
Blue Line
  • 71
  • 1
  • 1
  • 5

2 Answers2

1

Use the "URL Redirector" gadget as instructed here: redirect - K8OMS Help Site

Add URL Redirector Gadget to your page.

  1. Edit page
  2. Insert
  3. More Gadgets
  4. Search for URL Redirector
  5. Select it
  6. 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

Community
  • 1
  • 1
MikeM
  • 27,227
  • 4
  • 64
  • 80
0

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 :)

Simon Carlson
  • 1,919
  • 5
  • 24
  • 35
  • Hi Simon Have tried this one, causing the same error message

    Prepare to be redirected!

    This page is a time delay redirect, please update your bookmarks to our new location!

    – Blue Line Oct 12 '12 at 14:08
  • Try this, might work: ` ` If this do not work then I am clueless, I'm using that script myself :) – Simon Carlson Oct 12 '12 at 14:11
  • I googled some on your error (never encountered it myself so do not know of it) and it seems to be a known bug within Google sites... check this thread out: http://code.google.com/p/google-caja/issues/detail?id=1549 My knowledge stops here, sorry I could not assist. – Simon Carlson Oct 12 '12 at 14:25
  • I was afraid the problem would lay in the html box. I guess I have to wait and see. Thanks anyway. – Blue Line Oct 12 '12 at 14:38