php - How to make an anchor tag not go to a URL/Open a file -


i have webpage 2 frames.

-left nav -right main content. have text-box here called "file_path" 

currently, have list of files on left hand side displaying anchors. want functionality if user clicks file on left hand frame, can grab value , put in text-box on right hand frame. able successfully, problem after getting value in right frame, left-frame opens file in section ... want prevent file being open. want pass value there.

echo "<li><a href=\".$filepath.\" onclick=\"parent.right.document.getelementbyid('file_path').value='$filepath'\">$filepath</a></li>"; 

i tried merely putting onclick list item, way loose functionality, user feels link clickable. appears static text ... i'd rather have cursor change when user goes on anchor tag, not open file ... possible?

echo "<li onclick=\"parent.right.document.getelementbyid('file_path').value='$filepath'\">$filepath</li>"; 

just put <a style="cursor:pointer" onclick="...">bla bla bla</a>


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -