HighDots Forums  

return false onClick

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss return false onClick in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PixelDog
 
Posts: n/a

Default return false onClick - 07-06-2004 , 01:10 PM






Having problems with visited links not changing colors when used in a
pop up window.
Al Sparber suggested I do the following: Make your links
real ones and for the ones that pop up windows, place a return false
on
the onClick event.
The links are real but I don't know where in my code to place the
return false onClick.
This is the code for one line of the links in question. Could somebody
show me were to place this statement?

<a href="#" class="mainnava"
onClick="MM_openBrWindow('http://www.crown-wood.com/','crown','toolbar=yes,location=yes,status=yes,men ubar=yes,scrollbars=yes,resizable=yes,width=450,he ight=300')">http://www.crown-wood.com/</a><br>

Reply With Quote
  #2  
Old   
Michael Fesser
 
Posts: n/a

Default Re: return false onClick - 07-06-2004 , 03:13 PM






.oO(PixelDog)

Quote:
Al Sparber suggested I do the following: Make your links
real ones and for the ones that pop up windows, place a return false
on the onClick event.
The links are real
There should be the URL of the linked site, not a '#'.

Quote:
but I don't know where in my code to place the
return false onClick. [...]
<a href="http://www.crown-wood.com/" class="mainnava"
onClick="MM_openBrWindow(...); return false;">http://www.crown-wood.com/</a>

Micha


Reply With Quote
  #3  
Old   
PixelDog
 
Posts: n/a

Default Re: return false onClick - 07-08-2004 , 12:47 PM



Michael Fesser <netizen (AT) gmx (DOT) net> wrote

Quote:
.oO(PixelDog)

Al Sparber suggested I do the following: Make your links
real ones and for the ones that pop up windows, place a return false
on the onClick event.
The links are real

There should be the URL of the linked site, not a '#'.

but I don't know where in my code to place the
return false onClick. [...]

a href="http://www.crown-wood.com/" class="mainnava"
onClick="MM_openBrWindow(...); return false;">http://www.crown-wood.com/</a

Micha
Thanks Micha,
I made the changes, but on IE on a PC the :visited link does'nt
activate until you leave the page and return, or hit refresh. Any
ideas?
here's the link:
http://www.sagebrushdesign.com/client/essmanns/links.html


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.