Hi,
I've a link on my page as follows:
<a href='javascript:void(0)' onclick="openImg('./aguilera81024x768.jpg')">
Obviously this triggers the javascript to open the image, but when you float over the link it says 'javascript:void(0)' on the status bar.
Not for the first time a user has emailed me saying that when they float over the link it 'appears' to indicate that clicking the link will do nothing, which is understandable as that's what void means.
Can I make this a bit neater, so maybe when you float over the link it says 'Click to open' but still does the same thing as javascript:void(0)? I tried using href='#' which is prettier but it reloads the page.
- Andy
_______________________________
"On a clear disk you can seek forever"
I've a link on my page as follows:
<a href='javascript:void(0)' onclick="openImg('./aguilera81024x768.jpg')">
Obviously this triggers the javascript to open the image, but when you float over the link it says 'javascript:void(0)' on the status bar.
Not for the first time a user has emailed me saying that when they float over the link it 'appears' to indicate that clicking the link will do nothing, which is understandable as that's what void means.
Can I make this a bit neater, so maybe when you float over the link it says 'Click to open' but still does the same thing as javascript:void(0)? I tried using href='#' which is prettier but it reloads the page.
- Andy
_______________________________
"On a clear disk you can seek forever"