is there a way by which if i click a radio button(s) in say, FILEA.htm, a corresponding radio button in say, FILEB.htm, is automatically clicked?
+2
A:
Assuming that FileA.htm and FileB.htm are independent files, the only way you can do this is if the radio button in FileA sets some persistent value (database, cookie, session variable) that FileB looks at when it gets loaded.
ChrisF
2010-06-06 12:40:03
A:
If FILEB.htm is included in an IFRAME in FILEA.htm, you can do this.
RedFilter
2010-06-06 12:41:47
A:
Thank you OrbMan and ChrisF. ChrisF, I have no idea how IFRAME would work, nor do i know its syntax. If can spare some time to elaborate, will be great help.
Also i found a simple script from the net that redirects the user to another page after timeout. I want to stay to redirect the user to an anchor (an anchor called #done) in the SAME page. Here's the code. Any help will be appreciated.
<form name="redirect">
<center>
<font face="Arial"><b>You will be redirected to the script in<br><br>
<form>
<input type="text" size="3" name="redirect2">
</form>
seconds</b></font>
</center>
<script>
<!--
/*
*/
//change below target URL to your own
var targetURL="http://myurl.com" // tried #done/samepage.htm as also samepage.htm/#done
//change the second to start counting down from
var countdownfrom=6
var currentsecond=document.redirect.redirect2.value=countdownfrom+1
function countredirect(){
if (currentsecond!=1){
currentsecond-=1
document.redirect.redirect2.value=currentsecond
}
else{
window.location=targetURL
return
}
setTimeout("countredirect()",1000)
}
countredirect()
//-->
</script>
sendscores
2010-06-09 03:02:37
You can respond with comments to answers by clicking the `add comment` link below any answer.
Daniel DiPaolo
2010-06-09 03:13:03