Web View Settings

Mobile WebTV Web


  • Tizen 2.4 and Higher for Mobile
  • Tizen 3.0 and Higher for TV


Related Info

You can set Web view properties.

This feature is supported in mobile and TV applications only.

The main features of the Web Setting API include:

Setting a User Agent for a Running Application

  1. Use the setUserAgentString() method to set a Web view user agent string:

    function successCallback() {
        console.log('The requested user agent string has just been set successfully.' + navigator.userAgent);
    /* Set a user agent string */
    var userAgent = 'CUSTOM_USER_AGENT_STRING';
    tizen.websetting.setUserAgentString(userAgent, successCallback);

Deleting Web View Cookies

  1. Use the removeAllCookies() method to delete all the Web view cookies:

    function CookiesRemovedSuccessCallback() {
        console.log('The cookies saved for your application have just been removed.');