Hello,
Using CSS so posting here but ?Javascrfipt problem (or just a simple html problem I am too dumb to solve?)
All of my HTML validates as XHTML strict except a small javascript line to open a new window when an image link is clicked.
THis line generates the following error:
Line 66, column 37: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified
^
Line 66, column 59: an attribute value must be a literal unless it contains only name characters (explain...)
^
The offending line of code is:
<span style="cursor
ointer" onclick=javascript:window.open("ecgimages/page01/page01large.html","blank","toolbar=no,width=806,height=658,left=150,top=0"
><img src="ecgimages/page01/page01small.gif" height="300" width="400" alt="An example of an ecg" class="right" /></span>
The header to my page is as follows:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"
<html xmlns=" xml:lang="en" lang="en">
<?xml version="1.0" encoding="UTF-8"?>
Can paste the full page if needed. Not uploaded yet.
Any ideas how I can get this line of Javascript to validate?
All help much appreciated.
JDN
Using CSS so posting here but ?Javascrfipt problem (or just a simple html problem I am too dumb to solve?)
All of my HTML validates as XHTML strict except a small javascript line to open a new window when an image link is clicked.
THis line generates the following error:
Line 66, column 37: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified
^
Line 66, column 59: an attribute value must be a literal unless it contains only name characters (explain...)
^
The offending line of code is:
<span style="cursor
The header to my page is as follows:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"
<html xmlns=" xml:lang="en" lang="en">
<?xml version="1.0" encoding="UTF-8"?>
Can paste the full page if needed. Not uploaded yet.
Any ideas how I can get this line of Javascript to validate?
All help much appreciated.
JDN