NameSilo

Javascript in the body

Spaceship Spaceship
Watch

liam_d

The original NP Emo KidEstablished Member
Impact
25
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?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
why don't you just try it, lol. javascript in itself can be within the body tags and validate though.
 
0
•••
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/
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back