[thelist] javascript pop-up problem

sfmalo sfmalo at msn.com
Mon Jul 23 17:46:53 CDT 2001


Rachel -

I second Anthony's motion. The # whips you right back to the top.

You can also use "javascript:; rather than "javascript://  and it will do
the same thing. If you look closely that's a colon followed by a semicolon.
Here's a sample of what works great on my site for a similar situation. As
you see, you can include width, height, and other parameters which places
your pop-up window exactly where you want it. In fact, this acts quite well
as a stand-alone without any scripting instructions in the <.head></head>
portion of the page. This is thanks to The List for this bit of script.

<a href="javascript:;"
onclick="window.open('images/webdescert1.gif','ImageWindow','width=425,heigh
t=325,top=125,left=200,resizable=yes');return false;"><img width="120"
height="89" border="2" src="images/webdescert1_thumb.gif" alt="Web Design
Certification"></a>

Sharon

----- Original Message -----
From: "Anthony Baratta" <Anthony at Baratta.com>
To: <thelist at lists.evolt.org>; <thelist at lists.evolt.org>
Sent: Monday, July 23, 2001 2:25 PM
Subject: Re: [thelist] javascript pop-up problem


> At 02:08 PM 7/23/2001, Rachel Starr wrote:
> >I'm using  javascript  to open popup picture windows that close when you
> >click outside of them.  I have a list of links to photos that extends
down
>
> Instead of this:
>
> <a href="#" onClick="openPictureWindow_Fever('gallery .......
>
> Try this:
>
> <a href="javascript://" onClick="openPictureWindow_Fever('gallery ......
>
> The HREF is sending a "go to the top" to the browser.
> ----
> Anthony Baratta
> President
> Keyboard Jockeys
---------------------------------------------------------------------------
Sharon F. Malone
"web design and Internet writing services"
http://www.24caratdesign.com






More information about the thelist mailing list