Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Javascript in the body

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
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
Close
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
Close
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
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back