Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

How to create a URL Launcher Widget

From Wiki
Jump to: navigation, search
Article Metadata
Code ExampleArticle
Created: taiwerns (21 Sep 2010)
Last edited: hamishwillee (26 Jul 2012)



This example allows you to create a URL launcher widget that has an icon in the Applications menu, but does nothing more than launch a URL (this could be a mobile site) in the browser.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<title> URL Launcher Widget</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script language="javascript" type="text/javascript" src="basic.js"></script>
<body onLoad="javascript:init();">


A function to launch the specified URL in the browser and closes the widget.

var LINK_URL = "";
// Called from the onload event handler to initialize the widget.
function init() {

Manifest file

Change the DisplayName and Identifier keys in the info.plist to your application name and identifier.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Nokia//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>URL Launcher</string>

Icon file

Include an icon.png file in the package so that your icon appears in the applications menu when this is installed.

Sample Widget

Here is a sample url launcher widget application

This page was last modified on 26 July 2012, at 03:23.
33 page views in the last 30 days.