[wplug] Web Development....A problem with OnClick......

Rick Harris ftumph at yahoo.com
Mon Nov 18 13:33:54 EST 2002


Phil,

According to this:

http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp

copyhistory is not a valid parameter.  What if you
remove that?

- Rick

--- "Phil Walther, Jr." <philjr at attglobal.net> wrote:
> Hopefully someone can figure out why this is not
> working.  I have a bit of
> an issue with the attributes of OnClick and IE....
> 
> Here's the beginning code, using an image map:
> 
> <img src="statemap.jpg" width="269" height="227"
> border="0"
> USEMAP="#statemap">
> <MAP NAME="statemap">
> <AREA SHAPE=polygon
>
COORDS="74,67,96,166,238,129,242,119,251,117,259,103,
> 243,88,246,55,225,38,96,75,88,59,76,70"
> ALT="Pennsylvania"
> OnMouseOut="window.status=''; return true"
> OnMouseOver="window.status='Selecting Pennsylvania';
> return true"
> ONCLICK="window.open ('state-pa.html', 'PA State
> Motorcycle Laws',
>
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,
> resizable=no,copyhistory=no,width=550,height=430' )
> ">
> 
> By the way, this works JUST FINE in mozilla, but I
> need to work in IE(6) as
> well.  Silly class assignments!  Anyway, what I
> found was that:
> 1. The OnClick was giving the problem
> 2. Narrowed down to "window.open
> 3. If I left the attributes of "window.open
> ('state-pa.html')"  IT WORKED!!
> 4. IE seems not to be enjoying the name or window
> attributes.
> 
> ANYONE have any ideas why, this is driving me nuts!
> 
> Thanks!
> Phil
> 
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug


=====
------------------------------------
Richard Harris
412.855.8763
rick at fogwater.com

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com



More information about the wplug mailing list