I have set up y index page and have had a couple of problems, regarding validation for Doc Type xhtml strict 1.0 as I have a couple of ‘3rd party’ scripts on the page. There’s nothing i can do abouit that … so why even try.
However, I have one error left, which i would like to remove.
Error message is :-
Line 287, Column 9: required attribute “action” not specified
<form>
✉
The attribute given above is required for an element that you’ve used, but you have omitted it. For instance, in most HTML and XHTML document types the “type” attribute is required on the “script” element and the “alt” attribute is required for the “img” element.
Typical values for type are type=”text/css” for <style> and type=”text/javascript” for <script>.
Code for section only
[CODE]
<form>
<div>
<input type=”image” src=”../cards/6.png” value=”Submit” alt=”Submit” onclick=”open_win()” />
</div>
</form>
and the function script, in the head section is as shown here
[CODE]
<script type=”text/javascript”>
function open_win()
{
window.open(“apple1.html”,”_blank”,”toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=540, height=200″);
}
</script>
I know very little about javascript. Do i actually need it in this instant.
I just want users to click on an image, in this case, a playing card picure, to take them to a new smaller window.
thanks for any input