Click here to Skip to main content
15,898,010 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to show anchor tag in javascript alert? Not working in FF.
Posted

1 solution

Don't think that you can enter markup to be displayed in javascript alert. however your may display a javascript prompt to the user i.e., through
JavaScript
confirm('do you want to go to this site www.abc.com'); 

and if the user clicks yes then you may redirect the user to the above site.

Regards
Pawan
 
Share this answer
 
Comments
IpsitaMishra 11-Dec-12 7:12am    
ohh actually the hyper link in my case calls a javascript function
that javascript function has some re-direction code.
Rai Pawan 11-Dec-12 8:14am    
then you should not be showing java script alert, instead use a window popup and display the link there.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900