Results 1 to 5 of 5

Thread: write line and then going back after some sec

  1. #1
    Join Date
    Sep 2007
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation write line and then going back after some sec

    that's exactly what i'm looking for...
    after few secondes that the script will redirect the page "back"=to the was opened before...und nine to some url...

  2. #2
    Join Date
    May 2007
    Location
    USA
    Posts
    373
    Thanks
    2
    Thanked 4 Times in 4 Posts

    Default

    window.setTimeout(function(){history.back();}, 1000);
    Last edited by Trinithis; 10-21-2007 at 04:25 PM. Reason: accidentally used ( instead of {
    Trinithis

  3. #3
    Join Date
    Sep 2007
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default and

    how you make the window close after some timeout?

  4. #4
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Code:
    setTimeout(function() { window.opener=self; window.close() },1000);
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  5. #5
    Join Date
    Oct 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    IF i wan to have it such that when user click "submit" button, will show a few line of msg for let say 1min, and then close the window, can any1 show me that line of code??

Bookmarks

Posting Permissions

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