You are here: Re: link hover color not honored when using onclick event « HTML « IT news, forums, messages
Re: link hover color not honored when using onclick event

Posted by Mark Parnell on 11/19/14 11:33

In our last episode, Richard Thoms <rdthoms@bellsouth.net> pronounced to
alt.html:

> Good points. For some more background. The real application is a
> "email this page" link and purpose here is to produce a clean "popup"
> style window that lets the visitor still see the current page but fill
> in the form to send the email.

a) Have the form as part of the page and return them to the same page
after submission
b) Have a link to the form on a separate page, that then takes them back
to the original page after submission.

> You know I have a pop-up blocker running but it does not complain.

Different blockers will block different things. All (at least in theory)
will block unsolicited popups; some will block *any* popup.

> Is
> window.open() all it takes to be tagged as an evil pop-up

Evil popup is redundant IMNSHO. :-) All popups are evil. If I want
something opened in a new window (or more likely, new tab), I will do it
myself.

> or are there
> other things the pop-up blockers look for?

There certainly are others, but window.open can also be blocked.

> For sure I don't want to get
> this linked blocked and it is not an "automatic" or unsolicited pop-up,

Understood. But I still don't want a new window to open when I click a
link.

> instead only when user clicks the "email this page" link will the new
> window appear.

*If* the user has Javascript enabled, and *if* the popup isn't blocked.

> I think this is the key to the problem. No href means no link, just an
> anchor. I develop using firefox and everthing looked great there but
> then when I test with IE I got unexpected results.

Firefox supports :hover properly, not just on links.

> Perhaps it is
> firefox which has a bug and is letting this sneak through.

Firefox has several different options for blocking popups. The basic
popup blocker won't block window.open when triggered by user
interaction, but it can be configured to do so (as I have done). I can't
even remember which option it is that controls that particular feature,
but it can certainly be done.

--
Mark Parnell
http://clarkecomputers.com.au

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация