Re: link hover color not honored when using onclick event



In our last episode, Richard Thoms <rdthoms@xxxxxxxxxxxxx> 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
.



Relevant Pages

  • IE is allowing virii/trojans/spyware etc. to install without help
    ... popups on the screen, and one looked like a normal ... window, as it didn't look quite right. ... Firefox desktop icon, ... the entire Firefox folder and install was gone. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Jis Site - Beta Version
    ... >> hides the redirection, the other doesn't. ... > The new window comes up but it's blank. ... In Firefox, that's the original window, not a new one. ... > I do use Mozilla's pop up blocker but there's nothing to indicate that ...
    (soc.genealogy.britain)
  • Re: System Doctor 2006
    ... It's just a stupid ol pop up and you just close the window. ... get a pop up blocker like use firefox. ... have a screen come up saysing System Errors and to scan using System ...
    (microsoft.public.windowsxp.general)
  • Re: Pop-up problem
    ... I contacted them about it, and apparently they've removed that feature from their product, but said that my IE settings and either Google or Yahoo toolbar should take care of it. ... Give an example web page where the popups are not being blocked. ... IE's popup blocker is weak. ... Now you are talking about ads in the web page. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Pop-up problem
    ... Give an example web page where the popups are not being blocked. ... IE's popup blocker is weak. ... Blocking popups does not get rid of ads. ... Norton is a brand, not a product name. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)