Click to See Complete Forum and Search --> : javascript errors?


calrockx
11-21-2003, 01:15 AM
IE says i have errors on the page, but i can't find them. i was hoping you guys could help me. here's all the javascript that's on the page...



in the head section:

<SCRIPT>
function NAME_IT() {
window.open('other/contact.htm','EANITHING','toolbar=no,location=no, directories=no, status=yes, menubar=no, resizable=yes, copyhistory=no, scrollbars=no, width=500, height=450');
};
</SCRIPT>





and in the body:


<TD BGCOLOR=BLACK COLSPAN=2><FONT STYLE="color:#FDF5E6; font-size:8pt">Thanks For Visiting.
<A HREF="javascript:NAME_IT()" onmouseover="window.status='send me some email.'; onmouseover="window.status=''; return true" STYLE="color:#FDF5E6; text-decoration:none">Contact Me.</A></FONT></TD>




thanks for the help.

Pittimann
11-21-2003, 02:26 AM
Hi!

The error is caused by the link in your table. Yours is:

<A HREF="javascript:NAME_IT()" onmouseover="window.status='send me some email.'; onmouseover="window.status=''; return true" STYLE="color:#FDF5E6; text-decoration:none">Contact Me.</A>

It should be:

<A HREF="javascript:NAME_IT()" onmouseover="window.status='send me some email.'"; onmouseout="window.status=''; return true" STYLE="color:#FDF5E6; text-decoration:none">Contact Me.</A>

It is the missing quote creating the error. Please note, that you have 2 mouseover "window.status=" instead of the second being an onmouseout thing.

Cheers - Pit

calrockx
11-21-2003, 11:36 AM
thanks :)