Results 1 to 2 of 2

Thread: JavaScript: Syntax Error?

  1. #1

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    JavaScript: Syntax Error?

    Can anybody tell me what's wrong with this code?

    Code:
    function del(url) {
        c = confirm('Are you sure you want to delete "Location" ?');
        if (c == true) {
            window.location.href = url;
        }
    }
    My evil laugh has a squeak in it.

    kristopherwilson.com

  2. #2

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Nevermind

    Nevermind. I got it.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

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



Click Here to Expand Forum to Full Width