Javascript in the body

SpaceshipSpaceship
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
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back