CalifNina
06-20-2003, 01:49 PM
I know this is so simple and stupid ... but I'm simply trying to have a text-link within a paragraph, that when selected brings up a second smaller window. That's it... this is my first time trying this. Code is incorrect somewhere. Help please.
HEAD section:<SCRIPT TYPE="text/javascript"> //Opens new window "testpage.html"
<!--
function openWindow()
{
window.open("testpage.html","myWindow","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory= yes,width=400,height=400")
}
//-->
</SCRIPT>
BODY section: (I'm betting this is the error-prone area??)<P>paragraph text paragraph text paragraph text <STRONG><A HREF onclick="openWindow()">click here for test page</A></STRONG> paragraph text paragraph text paragraph text.</P>
I don't know how to do this. :mad: It's gotta be the whole A HREF onclick combination??? ... need someone to please critique and find my code or logic error(s)??
HEAD section:<SCRIPT TYPE="text/javascript"> //Opens new window "testpage.html"
<!--
function openWindow()
{
window.open("testpage.html","myWindow","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory= yes,width=400,height=400")
}
//-->
</SCRIPT>
BODY section: (I'm betting this is the error-prone area??)<P>paragraph text paragraph text paragraph text <STRONG><A HREF onclick="openWindow()">click here for test page</A></STRONG> paragraph text paragraph text paragraph text.</P>
I don't know how to do this. :mad: It's gotta be the whole A HREF onclick combination??? ... need someone to please critique and find my code or logic error(s)??