[thelist] href=# versus href=JavaScript.....

Bailey, Dan DBailey at digitalinsurance.com
Thu Feb 22 11:50:10 CST 2001


Okay, here's the code snippet that started it all, and I can't seem to make
it jive.  It could be that my brain is still in VacationMode(tm), so bear
with me:

<script language="JavaScript">
<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
self.name = "di_main"; //names current window as "di_main"
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;

winprops =
'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',r
esizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//  End -->
</script>

<font face="Arial, Helvetica, sans serif" size="2">
<p>Click <a
href="javascript:NewWindow('DisplayMessageNoZones.asp?Content%20Type=ca_spec
ific_footer','Individuals','400','400','yes');return false;">here</a> to
view age-banded rates.</p>
</font>



What am I missing?

-----------------------------------------
Dan Bailey
Content Engineer
Digital Insurance
dbailey at digitalinsurance.com
(610)-278-5471
When your only tool is a hammer, everything starts to look like a nail.
"Shop smart!  Shop S-mart!"



-----Original Message-----
From: Erik Mattheis [mailto:gozz at gozz.com]
Sent: Thursday, February 22, 2001 1:10 AM
To: thelist at lists.evolt.org
Subject: Re: [thelist] href=# versus href=JavaScript.....


I was just experimenting with different ways of triggering a 
javascript function ...

http://gozz.com/temporary/no_href.html

Netscape does something weird when I put a style="" on the image ... 
it takes the image out of the table, as if it were placed between 
</tr> and <tr> or something ... both Mac and Win - 4.73 on both.

Also, on Nav Mac the <a href="#" onClick=""> works until you try the 
one that has <img onClick=""> ... after which it won't work.

BTW, I hate it when I see href="#" to call javascript functions ... 
at least add a window.status='' for me.
-- 
- Erik Mattheis
http://gozz.com/
(612) 827 3963

---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt ! 




More information about the thelist mailing list