Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    308
    Thanks
    0
    Thanked 0 Times in 0 Posts

    onClick=window.location.href mozilla problem

    <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>

    Any idea:

    1. Why this doesn't work in Mozilla?

    2. How it can be modified to work in Mozilla?

    Thanks!

    Ash

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    For one, Mozilla does not have a cursor "hand" try "pointer" instead....

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    A little more clarity in exactly what isn't working will help get you a solution faster.

    Code:
    onClick="window.location.href='/includes/pf/test.asp'"
    Try it without the "red" text.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    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.

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    308
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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!

    Ashley

  • #6
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    You can avoid attaching onmouseover/onmouseout in each td by doing this: http://www.vladdy.net/demos/iepseudoclassesfix.html


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •