on click behavior

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have set a behavior for a pop up window, but I don't want it to open unless
someone clinks on the link. It keeps opening on mouseover. I have it set
onclick, but it still opens on mouseover.

Does it matter that the poup window is a page within my web site?
 
shouldn't matter that it's a page w/in your site.
can you give a url to this errant behavior's page?

--
Chris Leeds,
Microsoft MVP-FrontPage

ContentSeed: great tool for web masters,
a fantastic convenience for site owners.
http://contentseed.com/
 
Hi,
See this code in your page
<font size="2" onmouseover="FP_openNewWindow('500', '300', false, false,
false, false, false, false, 'badlink', /*href*/'Bad%20Link.htm')">
<a onclick="FP_openNewWindow('500', '250', false, false, false, false,
false, false, 'badlink', /*href*/'Bad%20Link.htm')"
href="javascript://www.newcardirectory.net/alabama.htm">Click here to report
a bad Link</a></font>

You've got a mouseover going on the font tag and an onclick on the link, so
the mouseover is going to fire first. Quickest way to solve it - flip to
Code View and change the above to
<font size="2">
<a onclick="FP_openNewWindow('500', '250', false, false, false, false,
false, false, 'badlink', /*href*/'Bad%20Link.htm'; return false;)"
href="alabama.htm">Click here to report a bad Link</a></font>
 
I checked it out, and it does exactly what it is supposed to. The popup
window does not come on until you click.

Wally S
 
I know i fixed it.

Thanks

Wally S said:
I checked it out, and it does exactly what it is supposed to. The popup
window does not come on until you click.

Wally S
 
It sure does - events work on any tag in modern browsers. If it didn't the
OP wouldn't have had the issue he described :-)
 
I don't think a mouseover works on a <font> tag anyhow.

It does.

And, in Firefox anyway, opening a window from a mouseover triggers the popup
blocker.

Bob Lehmann
 
some suggetions re: lauout of your web site:
1. Change all caps to reg text. They are not easy to read and som fols
find ethem annoying.
2. Your tabel lauout results in right scrollng to rigt part of the page.
3. Rview your page in Firfox or mozilla and fix problms. For example the
litle picure you have on the left pane is displyed over the text.
 
Who would want to do something weird like put a mouse event on a
presentational tag anyhow? 8)
 
Thanks got it working. Appreciate it.

p c said:
some suggetions re: lauout of your web site:
1. Change all caps to reg text. They are not easy to read and som fols
find ethem annoying.
2. Your tabel lauout results in right scrollng to rigt part of the page.
3. Rview your page in Firfox or mozilla and fix problms. For example the
litle picure you have on the left pane is displyed over the text.
 
Back
Top