PHP - Print target window on load (automatic)
===

I have some code in **Yootheme ZOO ItemPrint Element** file (itemprint.php), and I modified this file little bit for self, but I don't know, how to write code to print targeted url 

     href="'.JRoute::_($this->app->route->item($this->_item, false).'&amp;tmpl=component&amp;print=1').'" 

automatic when load in new window.

	class ElementItemPrint extends Element {

		public function hasValue($params = array()) {
			return true;
		}

		public function edit() {
			return null;
		}

		public function render($params = array()) {

			$params = $this->app->data->create($params);

			$this->app->document->addStylesheet('elements:itemprint/assets/css/itemprint.css');

			if ($this->app->request->getBool('print', 0)) {

				$this->app->document->addStyleDeclaration('#comments #respond { display:none; }');
				$this->app->document->addStylesheet('root:templates/yoo_balance/css/articles_print.css');

				if (!$params->get('showcomments', true)) {
					$this->app->document->addStyleDeclaration('#comments { display:none; }');
				}

				return '<a class="element-print-button" onclick="window.print(); return false;" href="#"></a>';

			} else {

				$text  = $params->get('showicon') ? '' : JText::_('Print');
				$class = $params->get('showicon') ? 'element-print-button' : 'element-print-text';
				
				return '<a href="'.JRoute::_($this->app->route->item($this->_item, false).'&amp;tmpl=component&amp;print=1').'" onclick="" title="'.JText::_('Print').'" class="'.$class.'" target="_blank">'.$text.'</a>';

			}
		}

	}