Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation doesn't work in firefox

    this script doesn't work in firefox.
    any idea?

    Code:
    	<script language="JavaScript"> 
    	function actualiza(){ 
    	    window.parent.frames[1].location.reload();
    	} 
    	</script>

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    See if this works

    window.parent.frames[1].location.href.reload();
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.

  • #3
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    thanks!

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,966
    Thanks
    0
    Thanked 236 Times in 233 Posts
    Quote Originally Posted by Mr J View Post
    See if this works

    window.parent.frames[1].location.href.reload();
    That won't work. reload is a method of location object and href is a string and not an object, thus it cannot have a method.

    The original code should work.

    Code:
    window.parent.frames[1].location.reload();
    This code means that the 2nd frame in the frameset of the parent window is reloaded. I assume this code is in a frame (presumably the first frame in the frameset).

    You can also name the frame and refer to it by name rather than by its frame index.

    Code:
    window.parent.frames["nameOfTheTargetFrame"].location.reload();


  •  

    Posting Permissions

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