ok, I ran into wall again this time
here is what I'm trying to do
function onAfterOrderConfirm(&$order,&$methods,$method_id){
		global $Itemid;
		$url_itemid='';
		if(!empty($Itemid)){
			$url_itemid='&Itemid='.$Itemid;
		}
		$return_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id='.$order->order_id.$url_itemid;
		
		$ccek = 'alert(\'$return_url\')';
		$docs =& JFactory::getDocument();
		$docs->addScriptDeclaration( $ccek );
		
		$link  = 'http://localhost/drivetest/PAYMENT/dum.php';
		$app = JFactory::getApplication();
		$app->redirect($link);
I want to alert the link before redirect to another page, but it never show an alert box before redirect
Do I miss something here?