2009-05-17, 05:12 PM
So I've been searching the internets all day and haven't found anything on this so I'm wondering if it's possible. I should probably ask this on a HTML forum but then I'll forget my pw.
Anyway, the javascript function "window.location.reload()" will reload a whole page when its executed. However, I'm trying to modify it so that I can reload one tag instead of a whole page.
I was doing something along the lines of
But that didn't go too well.
Anyway, the javascript function "window.location.reload()" will reload a whole page when its executed. However, I'm trying to modify it so that I can reload one tag instead of a whole page.
I was doing something along the lines of
Code:
<script language="JavaScript">
function loadThis() {
var loadThis = document.getElementById('lol');
loadThis.reload(); //I've also tried using "loadThis.location.reload()" but that didn't work either
}
</script>
<form action="#">
<select name=lol id=lol size=5>
<option value="1">a
<option value="2">b
<option value="3">c
</select>
<br>
<INPUT TYPE="button" value="Reload" onClick="javascript:loadThis()">

+