Thu 18 Dec 2003, 12:29 PMTweet
by Ben Langhinrichs
As so often happens to me, I was answering a question (on the ND6 Gold Forum) when my answer triggered a question for me. If you look at my answer, you will see two action hotspots. One uses formula language and has the formula:
I would have expected that the HTML generated would be approximately the same, but for the change in the message, but here is what Domino generates for the @URLOpen call:
Now, having seen the results, I understand somewhat why the two would be generated differently. What I am less clear about are the implications. Which is "better"? Here are a few observations which make me unsure (all observations made from IE 5.5, because that is what I am using):
Copyright © 2003 Genii Software Ltd.
What has been said:
84.1. Stan Rogers (12/18/2003 01:00 PM)
Which is "right"? Well, is ketchup an acceptable condiment for use on a hot dog? Bring that up in a public discussion, and you'll get the same kind of religious argument. Personally, I prefer pseudoURLs and mustard+onions. But that is just my opinion.
84.2. Stan Rogers (12/18/2003 01:01 PM)
When I grow up, I want to learn how to spell "mechanics", among other things.
84.3. Ben Langhinrichs (12/18/2003 01:30 PM)
84.4. Stan Rogers (12/18/2003 01:41 PM)
In my own HTML, though, I tend to use the pseudoURL. I save the onclick for buttons, input images, and other things that only do what they do from the onclick.
84.5. Richard Schwartz (12/30/2003 01:45 PM)
I have a suspicion that behavior of the href version may vary depending on whether or not the target (explicit or default) is outside of the current window, whereas the onClick version should always execute in the current window's context.