×
Namespaces

Variants
Actions

How-to use links and launch the browser from a WRT widget

From Nokia Developer Wiki
Jump to: navigation, search


Article Metadata
Compatibility
Platform(s): S60
Platform Security
Capabilities: )
Article
Keywords: Browser URI Scheme, Browser Protocol
Created: forum-mrkt (03 Oct 2007)
Last edited: hamishwillee (24 Jun 2011)


How to use links in S60 WRT Widgets

Best way to use links within S60 WRT widgets is

<a href="javascript:widget.openURL('http://www.my-site.com')">Open My Site</a>

instead of

<a href="http://www.my-site.com">Open My Site</a>

The issue with the link is that if a widget's content contains a link to open an URI from the Internet, the new HTML page will be loaded to replace the widget's main HTML page. After this, there is no way to get back to the widget main page. In other words, this means that open a new HTML page within a widget with a normal tag such as shown below will decrease the end user experience of widgets.

<a href="http://www.yahoo.com">Open Yahoo</a>
This page was last modified on 24 June 2011, at 11:15.
64 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×