[thelist] JavaScript problem - favorite/bookmark(let)

databarn databarn at airmail.net
Sat Aug 4 17:12:22 CDT 2001


Folk,

I'm trying to create a favorite/bookmark (or bookmarklet?) that I can place on the desktop and use to [open and] size the browser window while loading a particular URL.

I'd ask this on the JavaScript list, but it seems to be having problems.

This favorite,
~~~~~~~~~~~~~~~~~~~~~
[DEFAULT]
BASEURL=file://C:\WINDOWS\Desktop\1024x768.htm

[InternetShortcut]
URL=javascript:resizeTo(1024,728)
Modified=60A331B1F89FC0013D
~~~~~~~~~~~~~~~~~~~~~
will resize my browser on the fly.  Using this as a model, I had thought to create
~~~~~~~~~~~~~~~~~~~~~
[DEFAULT]
BASEURL=file://C:\WINDOWS\Desktop\webcam.htm

[InternetShortcut]
URL=javascript:open(
http://domain.com/page, "page title","webcam","menubar=0,scrollbars=0,width=330,height=250,toolbar=0,location=0,directories=0,status=0:)
Modified=60A331B1F89FC0013D
~~~~~~~~~~~~~~~~~~~~~
using the code for a pop-up.  When I select this from the favorites menu in IE5.01, an error is generated, " . . . expected ')' at . . .) with the position coinciding, I _think_, with the character (colon or period) just before 'open'.  I've tried this with 'window.open', 'this.open', 'document.open', etc., but naught seems to work.  (Obviously 'this.open' _shouldn't_ have worked, but when grasping at straws . . ..)  The error is always the same position (which varies, depending upon which futile effort has just been made), the character preceding 'open'.

Anyone have any idea what I'm missing?  Or whether this is doable?  None of the books I have are of any help to me at this point on the learning curve  For some reason, they all keep talking ab. web pages <grin!>.

Make a good day . . .
			 . . . barn
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The cruise liner, Queen Elizabeth II, moves only six inches for each gallon of diesel that it burns.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 	






More information about the thelist mailing list