1.

Solve : Javascript Pop Up?

Answer»

I'm learning from a book how to make pop UPS on a web site when a page loads. I'm copying the code correctly I think but I'm getting 2 errors. I went around to different sites looking for a code I couldn't copy and past to SEE what I was doing wrong and I get the same errors from every code. My pop up blocker is turned off. Right now my goal is to just make a blank pop up window. The errors I'm getting are

Unterminated string constant Line 8
window.html

and

Object expected line 15

Code: [Select]<html&GT;
<head>
<script language="javascript">
<!-- begin

function popup(Site)
{
window.open(Site,'PopupName','toolbar=no,statusbar=no,
location=no,scrollbars=yes,resizable=yes,width=275,height=200')
}

// end -->
</script>
</head>
<BODY onLoad="popup('time.html')">
</body>
</html>
REMOVE the line break between "statusbar=no," and "location=no"

-rockErrr.....sorry.  That might be one problem but you also need to TERMINATE the line with a semi colon ( ; )

-rock



Discussion

No Comment Found