script validation error

Posted by Kyle Sevenoaks on Stack Overflow See other posts from Stack Overflow or by Kyle Sevenoaks
Published on 2010-04-09T11:38:04Z Indexed on 2010/04/09 11:43 UTC
Read the original article Hit count: 216

Filed under:
|
|

Hi, there is a script in my html tag

<script type="text/javascript">
 function setTaxDisplay(display)
 {
  window.location.href += (window.location.href.indexOf('?') > -1 ? '&' : '?') + 'taxInclude=' + display;
 }
</script>

When passed to validation It returns that the ampersand there isn't valid, but it's absolutely vital to the function of the page, is there a way I can make the validator ignore this? I don't need to validate the page, I'm no JS expert at all I'm not sure if I can replace it with &amp;.

Thanks.

© Stack Overflow or respective owner

Related posts about script

Related posts about validation