[WEB4LIB] FW: window.open
Vickie L. Kline
vkline at eagle.ycp.edu
Tue Sep 14 19:07:40 EDT 1999
Pardon a question from a JavaScript newbie, but how would you set up the
code if you had a list of different links to open as separate pages? ie.
you wanted the user to be able to open either a link to Yahoo or to Snap
as separate pages...
TIA!
**************************************************************************
Vickie L. Kline vkline at ycp.edu
Head of Technical Services
Asst. Professor Phone: 717-815-1459
FAX: 717-849-1608
York College of PA - Schmidt Library
York, PA 17405-7199
Sacred cows make the best hamburger. [Mark Twain]
On Tue, 20 Jul 1999, Michael Sauers wrote:
> Thanks to Larry Scritchfield of the AZ Daily Star for offering an
> alternative. It seems that what I want will work as a function but not as a
> direct link. This solution works in both Netscape and IE.
>
> <html>
> <head>
> <script language="JavaScript">
> <!-- //
> function myfunc(url){
> window.open("http://www.yahoo.com/","yahooWindow","height=300,width=400");
> }
> //-->
> </script>
> </head>
> <body>
>
> The <a href="javascript:myfunc()">Yahoo!</a> Site.
>
> </body>
> </html>
>
> --------------------------------------------------------
> Michael Sauers, Internet Trainer
> Bibliographical Center for Research (BCR)
> Aurora, CO :: msauers at bcr.org
> PGP public Key and other info available @
> http://www.bcr.org/~msauers
> The WWW Library Directory is @
> http://www.webpan.com/msauers/libdir/
>
> "Government did not become more responsive due to
> online users; it just became more responsive to them."
> -- Eli M. Noam, Columbia University
> "Will the Internet Be Bad for Democracy?
> NetFuture #91
>
> Opinions expressed are my own unless otherwise noted.
> ---------------------------------------------------------
>
>
More information about the Web4lib
mailing list