<script>
var submitted = false
function checkSubmit() {
if(!submitted) {
return true
}
return false
}
</script>
and then in your form tag put
onSubmit="return checkSubmit()"
and that should stop poeple from mashing your form button
lemme find that fix for your problem... its a well know problem with ns
http://www.moock.org/webdesign/javascript/fixnetscapecss/index.html
there you go.
netscape 4.7 supports nested divs just fine. they are part of the document obj of the parent div...
<div id="div1"><div id="div2"></div></div>
so to access div2 its :
document.div1.document.div2
hi there,
my problem is if i change the value of a text box then read its maxscroll property i get the maxscroll from what was in the box before hand, not the new value. anyone know how to get around this?
thanks.
twist
<script Language="JavaScript">
<!--
function calculateScore(){
var score = 0
for (i = 1; i <= 8; i++){
var n = document.form1["q"+i].selectedIndex;
score += n;
}
document.form1.total.value = score;
document.location.href = 'score.html?' + score;
}
//-->
</script>
it was...
to set events use the following (these are for mouseMove)...
for ie:
document.onmousemove = someFunction;
for ns < 6:
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = someFunction;
for ns6:
document.addEventListener("mousemove", someFunction, true);
this...
i'll look into a way too select/copy the whole page in ns6, i gotta read up on ns6 anyways. hopefully if no ones answered your post by sat. i'll have something :) good luck.
this gets rid of the ability to right click in msie and netscape < 6. i can't figure out how too cancel it in ns6 (well i did but you have to hide the window for 50ms. hehe)
<script>
<!--
function click(e) {
if(document.all) {
if (event.button==2) {
alert("no right click...
you can do that pretty easily in msie 4+, i'm not sure about netscape though.
if your interested in a msie version its easy to do with...
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/mshtml/reference/ifaces/controlrange/execcommand.asp
function checkKey(obj) {
if(event.keyCode == 13) {
document.execCommand("Paste",false,"<br>")
obj.focus();
}
}
then add onkeyUp="checkKey(this)" to any text boxes you want to check in. it will add the acctual code for a br (only works in msie)
i'm not sure...
try this one. it writes it in the same window.
<html>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
var item = new Array();
// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"
c=0; item[c]=new...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.