you can try :
<a href="your real url" onclick="return confirm('sure about that
?')">link</a>
this way the href attribute can be treated as a real url.
Regards,
Nicolas
On 2/23/06, Audrius Peseckis <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm trying to get my custom renderer work with DirectLink. What I'm trying
> to do is achieve something like this:
>
> <a href="javascript:if(confirm('Are you sure about something?')){
> document.location.href='SOME_URL';};">LINK</a>
>
> When I try to write all this stuff as an attribute (
> IMarkupWriter.attribute("href", javascripPart)), by some reason each space
> in javascript is separated in tag as a different attribute. If I use
> attributeRaw(), those spaces are converted to %xx stuff.
>
> So neither of previously mentioned methods work for me. Is there a clean
> way to add javascript to attribute which would be treated as javascript? Any
> suggestions are welcome.
>
> Thanks,
> Audrius
>