Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2004
    Posts
    104

    Unanswered: What is the parent.location=URL"?

    I have an .asp file that include a line with code in JavaScript:
    <code>
    if confirm(...)
    {
    parent.location='an URL with qry string'
    }
    </code>
    What is the parent.location.Note that the URL is the current URL with QryString.
    Thanks

  2. #2
    Join Date
    Mar 2004
    Posts
    52
    seems like if the confirm statement is true, the javascript send a querystring to your asp page (the same page).
    This asp page presumable request the same query string and does sth with it, like inserting the queried value inside a SQL statement and runs that, usally in form of a var.

    //Martin :-)
    "Never underestimate a large number of morons"

  3. #3
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    basically it is just setting the current windows location to the same page with the query string. why they don't just use the submit I don't know but effectively they are doing the same thing.

Posting Permissions

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