Go Back   Ultimate Web Site Drop Down Menu Forum > Web Development > Javascript
Register FAQ Members List Calendar Today's Posts

Reply
Thread Tools Display Modes
Unread 01-19-2008, 12:32 PM
ISMAILC ISMAILC is offline
Member
Join Date: Dec 2007
Posts: 45
  #1  
Question Loose Focus/no Focus onclick set focus to nothing/opening a page where there is none!

Hi, I would like to do the following.

I have an href where onclick the focus is on the href:
I got it to change focus to another object but i don't really want that.

It must be as if the user clicked nothing. The href is what i use for my tooltip so it's only surppose to work onmouseover!

This is the jscript:
onClick="document.getElementById('__Submit').focus();"

The __Submit' is another object - i' setting the focus to


XSLT code i'm using:

<a>
<xsl:attribute name='href'>#</xsl:attribute>
<xsl:attribute name='rel'>ttip_<xsl:value-of select='@name' /></xsl:attribute>
<xsl:attribute name='onClick'>document.getElementById('__Submit') .focus();</xsl:attribute>
<img src="images/help.jpg" align="texttop" style='border : none;'></img>
</a>

Please Help!

Regards
Reply With Quote
Unread 01-20-2008, 07:19 PM
Admin
Posts: n/a
  #2  
Default

Does focus work on a specific ID? Perhaps using the document.forms[0].elements[0].focus() will work better?
Reply With Quote
Unread 01-21-2008, 07:03 AM
ISMAILC ISMAILC is offline
Member
Join Date: Dec 2007
Posts: 45
  #3  
Smile Hi, Thank You very much for your kindness & help

Hi, Thank You very much for your kindness & help

I found that i had to add the onBlur

this.blur();return false;

Thank You !!!

Regards
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 07:09 PM.


Powered by vBulletin® Version 3.0.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.