I would like to open my bookmarks in a popup.
In order to do this, I added a script for my theme (function "openmypopup").
Then, I would like to Add bookmarks similar to:
javascript:openmypopup('www.my-bookmark.com')
i.e. the equivalent to the html code:
<a href="javascript:openmypopup('www.my-bookmark.com')">Google</a>
But when I try to add this bookmark, I have the error message:
The path 'openmypopup('www.my-bookmark.com')' is either invalid or you do not have access to it.
How to allow this format ?
Do I need to modify the Bookmarks module ?
"Bookmarks are based on the menu system..." => Do I need to modify the menu system ?
Comments
Comment #1
Anonymous (not verified) commentedThe menu system, and hence the bookmarks module, uses paths. While you could modify the bookmarks module to permit this type of path it would not be the correct way to accomplish your goal. Nearly every major browser has methods for opening links in new windows that will work better than javascript.
Comment #2
pyctures commentedOK for your comment.
If I just want to add a small icon in front of my bookmark, where can I add my img tag ?