View Full Version : Can you load a bookmark with JavaScript?
MAXIMUS
07-17-2002, 02:46 AM
I've seen several scripts out there that will let you add a bookmark simply by clicking a button or link. However, I need to be able to click a button or link that will allow someone to load a previously added bookmark.
Basically I want to bring up the CTRL-I menu if possible, via JavaScript. Is this even possible? How would I start?
*Note that this is intened to run on PC, IE 5.0 or higher.
requestcode
07-17-2002, 03:43 AM
Not with JavaScript. Not sure about any other options.
MAXIMUS
07-17-2002, 03:56 AM
Hm... I was afraid of that. Thanks anyways.
Roy Sinclair
07-17-2002, 03:00 PM
To be more expansive, in order to do this from javascript you'd have to be able to read the bookmarks to find the one you wanted. If javascript could read bookmarks then javascript could report the contents of those bookmarks to the host server. Would you want any site you visited to be able to check your list of bookmarks? :rolleyes: Fortunately javascript hasn't been given anything like the capability you were asking about. While it might be nice to do this to assist the user the capability for misuse means it's unavailable.
MAXIMUS
07-17-2002, 03:36 PM
All of the bookmarks will be for the same site. This will actually be run locally off someone's computer, but I do need to allow them to load a bookmark for reasons I will not go into.
All I need to do is have javascript perform the same action as hitting CTRL-I... so close yet so far!
Roy Sinclair
07-17-2002, 03:48 PM
If the page is running locally (not even a local web server) and the user is using IE then you should look at setting it up as an HTML Application (.hta) page. That'll give you a lot of capabilities in scripting that aren't normally available and with that a lot of control over the look of the browser which may include bringing up the list of bookmarks.
Here's a good starting point: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/hta/hta_node_entry.asp
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.