please help : how can i remove the next code

Discussion in 'Programming' started by nevret2, Jun 24, 2007.

  1. #1
    helloi have 2 files, called file1.php and file2.php

    i made it so people cant click with left mouse button on download, they must click with right mouse button and then chose save as. but i want to delete this, so people can click with left mouse button, the next is the code for it i think:


    <a href="#" target=_BLANK onClick="javascript:window.open('download1.php?id=<? echo $id; ?>','Download','location=0,status=0,toolbar=0,locationbar=0,menubar=0,scrollbars=0,resizable=0,width=900,height=900');return false;">Download</a>
    Code (markup):

    and


    <a href="<?php echo $type; ?>" onClick="return false;">Download</a>
    Code (markup):

    so how can i remove the function of 'left mouse button closed'

    can someone please edit and post it here please
     
    nevret2, Jun 24, 2007 IP
  2. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just get rid of the ' onClick="return false;"' bit. You just want a normal HTML link, instead.
     
    TwistMyArm, Jun 24, 2007 IP