How do I use HTML inside a JavaScript code?

Posted by Anonymous the Great on Stack Overflow See other posts from Stack Overflow or by Anonymous the Great
Published on 2010-06-10T02:56:41Z Indexed on 2010/06/10 3:02 UTC
Read the original article Hit count: 175

Filed under:
|

I want to change the page, I'm not sure if it is possible with JavaScript, so I tried with HTML, and it failed.

if (text=="home") {'<meta http-equiv="REFRESH" content="1;url=index.php">'; return;}

Any ideas on how to do this?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about xampp