Javascript in the body

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
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.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
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
•••
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover
URLs.com
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back