Re: Opening a new window from a link with target=_blank

by "Cindy Stanley, SSS WebWorks" <stanleysupport(at)prodigy.net>

 Date:  Wed, 30 Aug 2000 21:22:12 -0400
 To:  <hwg-basics(at)mail.hwg.org>
  todo: View Thread, Original
From: Kate Pollara <kpollara(at)home.com>
>Is there a way to control the size of the new window so that the user can
>still see a substantial part of the originating page and not get confused
as
>to where they are

You can accomplish the above with javascript. In the <head> of your document
place

<script language="JavaScript" type="text/javascript">
<!--//BEGIN Script
function new_window(url) {
link =
window.open(url,"Link","toolbar=0,location=0,directories=0,status=0,menubar=
yes,scrollbars=yes,resizable=yes,width=522,height=282");
}
//END Script-->
</script>

(you can call the width and the height of the new window to your liking, and
change the toolbar, location, directories, status, or menubar to yes if
you'd like them to show on that new window)

and in the body of your document, where your link lays, place this

<a href="javascript:new_window('newdocument.html')">Your link text goes
here</a>

--
Cindy K. Stanley, SSS
Stanley Support Service

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA