Javascript - Refresh Parent Window?

Discussion in 'JavaScript' started by cancer10, Aug 8, 2008.

  1. #1
    Hi

    I have an HTML page (index.html) and a link in it. Clicking on that link opens a javascript Popup (popup.html). There is a small form on the popup window. Now when someone submits the form in that popup.html page, the index.html should refresh automatically.

    Anyone knows how to do this?


    Please help me.


    Thanx
     
    cancer10, Aug 8, 2008 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    
    <form action="popup.html" method="post" onsubmit="window.parent.location = window.parent.location;">
    
    HTML:
     
    nico_swd, Aug 9, 2008 IP
  3. cancer10

    cancer10 Guest

    Messages:
    364
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Dude,

    plz remove that Image rotator link from ur siggy, that site contains trojan :(
     
    cancer10, Aug 9, 2008 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    It does?! :confused:

    I'll check it.. thanks!
     
    nico_swd, Aug 9, 2008 IP
  5. cancer10

    cancer10 Guest

    Messages:
    364
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yep. seems someone has injected Trojan in your site. Is it a DB site? if yes, then this could be an SQL injection.
     
    cancer10, Aug 16, 2008 IP