Ignoring the fact that a javascript:// protocol doesn't exist, you
have to close/self-close the element tag you want to create:

$('<a/>').attr(); or
$('<a>test</a>').attr()

- ricardo

On Nov 28, 9:01 am, Serge <[EMAIL PROTECTED]> wrote:
> Hi guys, you can see jQuery code below, it works in Firefox and Opera
> for me, but does not work in IE6.
>
> $(function() {
>         var a = $('<a>').attr('href', 'javascript://').append('test');
>         $('body').append(a);
>
> });

Reply via email to