Fro your description all you should needc to do is change href="foo.html" to
href="javascript:void(null)"
----- Original Message -----
From: "Dougal Campbell" <[EMAIL PROTECTED]>
To: "DynAPI-Help" <[EMAIL PROTECTED]>
Sent: Friday, June 29, 2001 1:52 PM
Subject: [Dynapi-Help] (no subject)
> I've got some links defined that use href="javascript:..." to pop up
> some DynLayers. For (extreme) backwards compatibility, I wanted to
> change the hrefs to reference actual html files, and use the onclick
> event instead. I figured that this way, script-enabled browsers will get
> the mega gui version of my site, but somebody with lynx could still
> access content.
>
> I tried something like this:
> <a href="foo.html" onclick="showGuiWin(); return false;">Foo!</a>
>
> In a simple case, this would work fine. The "return false" would tell
> the browser to *not* actualy load the foo.html page.
>
> But it seems that DynAPI's events are passing the click through anyways,
> so what happens is that the showGuiWin() function is executed, but then
> the browser loads foo.html.
>
> How can I accomplish what I'm trying to do?
>
> --
> Ernest MacDougal Campbell III, MCP+I, MCSE <[EMAIL PROTECTED]>
> http://dougal.gunters.org/ http://spam.gunters.org/
> Lumber Cartel Unit #1654 (tinlc): http://come.to/the.lumber.cartel/
> This message is guaranteed to be 100% eror frea!
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help