si tratta di una funzione standard per le pop-up (in un file esterno)
function Apripop(x){
var popup = window.open(x, "fotox", "toolbar=no, menubar=no, scrollbars=no, resizable=no, width=620, height=500");
}
la usa chiamata nel documento mi da questo errore:
Line 46, column 38: an attribute value must be a literal unless it contains only name characters
<a href="javascript:;" onclick=Apripop("foto/1.html")><img src="foto/a1.jpg" alt
You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around your attribute values. It is never wrong to do so, and very often it is absolutely necessary.
suggerimenti?![]()