|
Posted by Richard Thoms on 11/09/43 11:33
Mark Parnell wrote:
> In our last episode, Richard Thoms <rdthoms@bellsouth.net> pronounced to
> alt.html:
>
>>The
>>second link has no href in it (is that legal?)
>
>
> What does the validator say?
Validator does not complain so I guess it's OK. More on that below.
>
>>but accomplishes what I
>>want to do (create a simple popup window and).
>
>
> But it's not about what you want; it's what about what your visitor
> wants. It's unlikely he/she/it wants a popup, and likely that their
> browser or other software will block popups. Or they could have
> Javascript disabled, in which case nothing will happen at all (at least
> with a popup blocker, they may get a message telling them it's been
> blocked).
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. I would rather not have to bring up a
full browser with all the menus/toolbars/etc for that purpose.
You know I have a pop-up blocker running but it does not complain. Is
window.open() all it takes to be tagged as an evil pop-up or are there
other things the pop-up blockers look for? For sure I don't want to get
this linked blocked and it is not an "automatic" or unsolicited pop-up,
instead only when user clicks the "email this page" link will the new
window appear.
>
>>The problem is that the second link will not honor the A:hover style
>
>
> No, the problem is that you are trying to force a popup on your
> visitors.
>
>>(color=red) in IE, it does work fine in Firefox.
>
>
> IE doesn't support :hover on anything except links.
>
>
>>I'm forced to set the color,
>>decoration, and cursor to make it look like a link.
>
>
> That's because without a href attribute it's not a link. It's just an
> anchor.
>
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. Perhaps it is
firefox which has a bug and is letting this sneak through.
Thanks for the input.
-Richard
Navigation:
[Reply to this message]
|