refresh page accordion

refresh page accordion

Hi every body
 i have still a problem with my jquery accordion i would like to refresh my page each time that i click to open one div in my accordion. i texedt with this code , but don't work.
 i don't know very well about jQuery ui.
well i testied with some code to gave some body in this forum.

$(function(){
$( ".accordion" ).accordion({ fillSpace: true });
$(".accordion").accordion({ header: "h3" , active: 4});

$('a[href*=#]').click(function() {
    $( "body" ).accordion( "refresh" );
});

<body>

<div class="accordion">

<h3><a href="#menu1">menu1</a></h3>
<div><iframe src="index1.html"></iframe></div>
<h3><a href="#menu2">menu2</a></h3>
<div><iframe src="index2.html"></iframe></div>
<h3><a href="#menu3">menu3</a></h3>
<div><iframe src="index3.html"></iframe></div>

</div>

please help me