Javascript Error

Permalink
I have an autonav header menu where I want the parent page to have no link. The parent page has disable_link_in_nav attribute and the view.php for autonav template has the following

if ($_c->getCollectionAttributeValue(‘disable_link_in_nav’)) {
$pageLink = javascript:void(0);
}

I get an error on $pageLink = javascript:void(0); Nothing gets loaded after this line.

Anyone help me here?