Rome hotels - Wordpress magazine themes - Sciences in 2007 - Debt Consolidation - Debt Consolidation

PDA

View Full Version : window.location not working in IE 6


cesarcesar
Jun 12th 2007, 10:48 pm
The following JS script works fine in FF and IE7. It fails though in IE6, which happens to be my target audience.

Whats failing is.. the window.location is not calling.


function confirmation(text,url_link) {
var answer = confirm(text)
if (answer){
window.location = url_link;
}

}

krakjoe
Jun 13th 2007, 1:27 am
window.location.href is the correct method to use.