I have one array.It is created in config file.When i make a click on Employee Summary this link will be open in next tab.Plz suggest how can i do this?
"Employee Summary" => array(
"title" => "Employee Summary",
"url" => APP_URL.'/report_own.php'
)
You can try this
"Employee Summary" => array(
"title" => "Employee Summary",
"url" => APP_URL.'/report_own.php',
"target" => '_blank'
)
You can use the Target-HTML-Tag.
<a href="YOUR_URL" target="_blank">Title</a>
It seems that in the following array, keys are the HTML attributes and values are the attribute values.
So, there is an attribute target
if we set it to _blank
, after clicking on the link, the link opens in a new tab/window depending upon environment.
"Employee Summary" => array(
"title" => "Employee Summary",
"url" => APP_URL.'/report_own.php',
'target' => '_blank'
)
Set Target= "Blank" To open in new tab..
<a target = '_blank' href='view_detail.php?nevna=$Sid_v' >$check</a>