Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Posts
    144
    Thanks
    5
    Thanked 0 Times in 0 Posts

    window.location not working in IE 6

    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.

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

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    It worked for me in IE6 and FF for the code

    Code:
    <input type="button" onclick="confirmation('OK','http://yahoo.com')">
    Are you missing anything?
    Last edited by abduraooft; 06-13-2007 at 07:23 AM.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Regular Coder
    Join Date
    Apr 2007
    Posts
    144
    Thanks
    5
    Thanked 0 Times in 0 Posts
    your right stripped out it does work. damn. ummmm


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •