No click sound refresh

Hi all, I need help here.

Is there a page refresh script that will not cause a "click" sound every time it refresh?
Please kindly help me thank. I am using IE6.0

lynn80Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SligowathsCommented:
try this

<script>

function changePage(newURL) {
location.replace(newURL);
}

<script>


<a href="javascript:changePage('http://www.example.com');">example1</a>

<a href="#" onClick="javascript:changePage('http://www.example.com');">example2</a>

<a href="javascript:void(0);" onClick="javascript:changePage('http://www.example.com');">example3</a>


Tiago Serafim
Michel PlungjanIT ExpertCommented:
Actually only way is to run a .reg file
Not something you users would want I bet

An alternative is to use an xml dataisland, get the data from there and use innerHTML to update
lynn80Author Commented:
Sligowaths,

sorry I forgot to mention my page is auto refresh every 6 seconds, how to use your code for this?


<script>

function changePage(newURL) {
location.replace(newURL);
}

<script>


<a href="javascript:changePage('http://www.example.com');">example1</a>

<a href="#" onClick="javascript:changePage('http://www.example.com');">example2</a>

<a href="javascript:void(0);" onClick="javascript:changePage('http://www.example.com');">example3</a>
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

lynn80Author Commented:
mplungjan,

how? have any examples?

thanks
lynn80Author Commented:
hello? Help please
lynn80Author Commented:
Hello?? is it not possible to do it or can't help at all???
frankenstratCommented:
Due to security reasons, IE will now allow javascript to access the click sound in order to control it.
lynn80Author Commented:
how????
frankenstratCommented:
The click sound is a system setting and allowing access to it through a web scripting language would open up a whole new set of problems for Microsoft. The click sound is just something you will have to live with and if you think it will annoy your visitors to hear the click sound, kindly suggest that they turn down their speakers.

Cheers
Ken
lynn80Author Commented:
Hi Ken,

But I saw some site do it without the click sound.. I wonder how script language they use?
frankenstratCommented:
If you can tell the address of the site, then I will take a look for you
lynn80Author Commented:
http://www.meetic.com

a dating site, free to join. When you go in notice the left panel of there menu where they stats how many users online.. every 6 second the iframe will refresh quietly.. Please take a look thanks.
frankenstratCommented:
try

function reload() {
   setTimeout("location.href='mypage.php'",6000);
   }

or more simply

onload="setTimeout("location.href='mypage.php'",6000);"

in the body tag
lynn80Author Commented:
I tried:

<script>
function reload() {
   setTimeout("location.href='mypage.php'",6000);
   }
</script>

It doesn't refresh.

I tried this got syntax error.
<body onload="setTimeout("location.href=mypage.php,6000);">
frankenstratCommented:
You forgot a couple of quotes, try this;
<body onload="setTimeout("location.href='mypage.php'",6000);">
lynn80Author Commented:

I am still getting syntax error on this line

<body onload="setTimeout("location.href='mypage.php'",6000);">

is it because of the 2 " " ?

frankenstratCommented:
Yup
<body onload=setTimeout("location.href='mypage.php'",6000)>
lynn80Author Commented:
hmm.. no luck man.. it doesn't reload sliently, have you visited the site? What language are they using?
frankenstratCommented:
They are using javascript.
lynn80Author Commented:
oh.. so can you help with javascript?
lynn80Author Commented:
thats what I am here for.............
Michel PlungjanIT ExpertCommented:
stmh = setTimeout('window.location.reload()',90000)
in an iframe
lynn80Author Commented:
Hi,

put this code in the function?

stmh = setTimeout('window.location.reload()',90000)


sorry, I don't know much about java I am a php programmer..
Michel PlungjanIT ExpertCommented:
They have an iframe and in that iframe they have the code
<script>
stmh = setTimeout('window.location.reload()',90000)
</script>

that will reload the page every 9 seconds using javaSCRIPT. Java is another animal all together

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lynn80Author Commented:
Hey thank you, this works!!

Thanks alot~~!
lynn80Author Commented:
This work on non inframe also!! Totally slient refresh!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.