...

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



cesarcesar
06-13-2007, 06:49 AM
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;
}

}

abduraooft
06-13-2007, 07:15 AM
It worked for me in IE6 and FF for the code


<input type="button" onclick="confirmation('OK','http://yahoo.com')">

Are you missing anything?

cesarcesar
06-13-2007, 07:39 AM
your right stripped out it does work. damn. ummmm



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum