Hi to al :)l,
Hope all will be fine. I want to include a link in the alert method.I tried this

alert("Please enable your java to experience this enhanced page." + '<a href="http://www.java.com/en/download/index.jsp" target="_blank">Free Download Java</a>');

But this will not made a link it shows all as it is. How can i made a link in alert. Is it possible or there is another approach to do it
Thank you .

Try using a pop up window, or a modal window.

something like

if ( confirm('Please enable java to experience this enhanced page')) { window.open('http://www.java.com/en/download/','_blank'); }

something like

if ( confirm('Please enable java to experience this enhanced page')) { window.open('http://www.java.com/en/download/','_blank'); }

I like

if ( confirm('Please enable java to experience this enhanced page\nClick OK to go to the Java Download page.')) { window.open('http://www.java.com/en/download/','_blank'); }

better explanation

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.