- your site will be much more maintenable
<a href="my_popup.html" class="medium_popup pp/popup"> explain these words </a>
We can see that the classes of the link are
is handled normally by the browser, and
pp/popup is used by the
post-processing code to add a onClick() handler that could be expressed as
If it's a dialog box to ask some more informations, you can encode the link like that :
<a href="" class="medium_popup pp/link/my_dialog.html"> choose the date </a>
pp/link/my_dialog.html will be parsed and the
href will be dynamically replaced with
You can even later add a
pp/popup after the
pp/link/my_dialog.html, and have the dialob box magically opened
in a popup.
I'll post later some example code to parse it.