View Full Version : onClick=window.location.href mozilla problem
07-10-2004, 06:47 AM
<td onmouseover="this.style.cursor='hand'; window.status = 'Testing'; return true;" onmouseout="window.status = ''; return true;" onClick="window.location.href='/includes/pf/test.asp'">blah blah</td>
1. Why this doesn't work in Mozilla?
2. How it can be modified to work in Mozilla?
07-10-2004, 07:14 AM
For one, Mozilla does not have a cursor "hand" try "pointer" instead....
07-12-2004, 06:56 PM
A little more clarity in exactly what isn't working will help get you a solution faster.
Try it without the "red" text.
07-13-2004, 07:01 AM
Putting window or not in that case will bear the same result, as in using alert instead of window.alert or prompt instead of window.prompt. I think Willy's right in saying that the wrong use of cursor value might have affected the onclick handler to work.
07-13-2004, 12:50 PM
Replacing hand with pointer did the trick. Turns out the code actually worked in Mozilla, it's just that since the cursor did not switch, like I'm accustomed to, I didn't realize it was indeed "clickable." Sorry! :(
07-13-2004, 01:23 PM
You can avoid attaching onmouseover/onmouseout in each td by doing this: http://www.vladdy.net/demos/iepseudoclassesfix.html
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.