Put a url in a browsers address bar

Alan Kemp alan at alankemp.com
Thu Aug 18 18:17:58 CEST 2005


On Thu, 18 Aug 2005 12:01:16 -0400, Colin Gillespie  
<c.gillespie at ncl.ac.uk> wrote:

> I would like to place a url in my browsers address bar, then execute.
> How can do this?
>
> e.g.
>
> def goToGoogle():
> 	url = "www.google.com"
> 	b = openBrowser()
> 	b.goToUrl(url)	
> 	return True
>

def goToGoogle():
	import webbrowser
	webbrowser.open("www.google.com");

Alan



More information about the Python-list mailing list