Click to See Complete Forum and Search --> : [RESOLVED] Firefox & Javascript Issue
Lil Ms Squirrel
Jul 6th, 2005, 05:44 AM
Mendhak kindly helped me with the following code towards a custom control I'm writing. It works happily in IE, but not in Firefox. Can anyone help me out with why and what I need to do to change it? :confused:
<table width="100%">
<tr>
<td style="CURSOR: hand" onclick="navigate('http://www.microsoft.com');" width="100%">microsoft.com</td>
</tr>
</table>
mendhak
Jul 6th, 2005, 06:18 AM
Is navigate a custom function? Show it's code.
Oh and it'd help if you told us what wasn't working ;)
Lil Ms Squirrel
Jul 6th, 2005, 07:07 AM
Ooops :blush:
I got the navigate method out of my Javascript book, but didn't read the bit that says it's an IE specific.
I tried replacing it with "location.href = www.microsoft.com" which again works happily in IE, but won't work in Firefox.
Basically in Firefox neither the cursor changes nor does it treat the table as a link :eek2:
mendhak
Jul 6th, 2005, 07:50 AM
Use this javascript:
javascript:document.location.href='http://www.mendhak.com/';
And for the cursor, try pointer instead of hand.
Lil Ms Squirrel
Jul 6th, 2005, 08:15 AM
Woo hoo....thanks Mendhak that works beautifully :D
Big up to the :afrog: once again
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.