liam_d The original NP Emo KidEstablished Member ★ 20 ★ Impact 25 Sep 4, 2008 930 views 2 replies #1 I am just wondering if code like this: Code: <script type="text/javascript"> window.setTimeout("document.location = 'http://www.google.co.uk';", 4000); </script> In the body tags would make xhtml validation fail?
I am just wondering if code like this: Code: <script type="text/javascript"> window.setTimeout("document.location = 'http://www.google.co.uk';", 4000); </script> In the body tags would make xhtml validation fail?
shockie VIP Member VIP ★ 15 ★ Impact 189 Sep 4, 2008 #2 why don't you just try it, lol. javascript in itself can be within the body tags and validate though.
why don't you just try it, lol. javascript in itself can be within the body tags and validate though.
raaga Established Member ★ 20 ★ Impact 1 Sep 7, 2008 #3 This kind of javascript is usually xhtml compatible. But like shickie says, you'll never know for sure unless you try it out here - http://validator.w3.org/
This kind of javascript is usually xhtml compatible. But like shickie says, you'll never know for sure unless you try it out here - http://validator.w3.org/