====== createTab ====== Adds a new tab and makes it an active ===== Syntax ===== createTab = function(aURI, aReferer, aWaitLoaded); ==== Parameters ==== * **//aURI//** * //functions:// address of loaded page * **//aReferer//** * //functions:// [[http://en.wikipedia.org/wiki/HTTP_referer|HTTP referer]], substituted when the page is loaded * **//aWaitLoaded//** * //functions:// a flag indicating whether or not to expect a full loading of the page ===== Notes ===== * If aWaitLoaded = false, the script will wait for the full page loading. Otherwise, the script will start to load the specified page and continue execution. ===== Examples ===== -createTab(); -createTab('yandex.ru'); -createTab('yandex.ru','https://google.ru/'); -createTab('yandex.ru','https://google.ru/',true); {{:ru:wascript:ecma:methods:11.png}}