3 messages in com.googlegroups.google-desktop-developerRe: open URL with Javascript
FromSent OnAttachments
glenn23 Nov 2006 21:00 
James [GD Team]07 Dec 2006 13:27 
glenn02 Jan 2007 13:35 
Subject:Re: open URL with Javascript
From:James [GD Team] (j.@google.com)
Date:12/07/2006 01:27:11 PM
List:com.googlegroups.google-desktop-developer

Hello Glenn,

Though gadgets are written in JavaScript and portions of the API resemble DHTML, the gadget is not a browser environment, so there is no "window" object.

Here is an example of how to open a browser using "Shell.Application":

var winShell = new ActiveXObject("Shell.Application"); winShell.ShellExecute(" http://www.google.com");

I hope that helps.

Cheers! James

glenn wrote:

I am trying to open a URL using Javascript, but for some reason I cannot get open() or window.open() to work in a Google gadget.

On open() I get an error "Object Expected" and on window.open I get "'window' is undefined"

Any ideas?

thanks in advance.