Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 8 of 8
  1. #1
    Member {sniper}'s Avatar
    Join Date
    Nov 2002
    Location
    Wisconsin ;)
    Posts
    76
    Member #
    298
    I am looking for a way to take a normal html file had have it redirect on blur ... any suggestions
    any help is always greatly appreciated
    =[11-42]= {sniper}
    my forum ~~ old personal site

  2.  

  3. #2
    Junior Member
    Join Date
    May 2003
    Location
    Cowsville, USA
    Posts
    3
    Member #
    1551
    'redirect on blur' what do you mean?

  4. #3
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    this might work...
    Code:
    <html>
    <head>
    <script type="text/javascript">
    function blurchange() {
    window.location = "newpage.html"
    }
    </script>
    <body onBlur="blurchange()">
    </body>
    </html>
    untested
    JR

  5. #4
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    Do you want the location to change on blur of the window, a text field/area, button, etc. ? More details, or a link would help.
    - Brian

  6. #5
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    my method works though...
    JR

  7. #6
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    Yeah it does.
    - Brian

  8. #7
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Off-topic note... when using the window.location property, always use "window.location.href = target". The reason is that the href is the property you want to change, which is a property of the location object. When you specify just location, it defaults to the href property for most browsers, but for some it doesn't. Also, referencing the property "href" is an explicit reference, which means that the browser won't have to search for the default reference each time it's called. This is a faster operation.

    Just remember that being explicit is your friend. This applies to all languages.

  9. #8
    Member {sniper}'s Avatar
    Join Date
    Nov 2002
    Location
    Wisconsin ;)
    Posts
    76
    Member #
    298
    WOW thanks for the great responce guys / girls. the script that you listed looks like it should do the trick THANK YOU !!!
    and for what I want it to do is just redirect to another plain page. just getting creative on my personal site then going to see how ppl like it friends and ect.
    any help is always greatly appreciated
    =[11-42]= {sniper}
    my forum ~~ old personal site


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:25 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com