For US stocks' users there are two types of taxation events:
(1) Taxes on investment gains: You will be taxed in India for this gain. You will not be taxed in the US. The amount of taxes you have to pay in India depends on how after how long you exit the investment. If you exit after 24 months, it is treated as long-term capital gains and the gains will be subject to 20% tax with indexation benefit. Below 24 months is short-term capital gain and is taxed according to your income tax slab.
(2) Taxes on dividends: Unlike investment gains, dividends will be taxed in the US at a flat rate of 25%. Fortunately, the US and India have a Double Taxation Avoidance Agreement (DTAA), which allows taxpayers to offset income tax already paid in the US. The 25% tax you already paid in the US is made available as Foreign Tax Credit and can be used to offset your income tax payable in India.