Im trying to make a inlog
After the inlog I like a form to popup.
Problem is that the browser after submit makes a reload.
- How to stop the reload.
- Or


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<script type="text/javascript">

function weg(){
document.getElementById('ff').style.display='none'; // Hide state dropdown}
document.getElementById('fff').style.display='none'; // Hide state dropdown

function inlog()
//document.getElementById('ff').style.display="block"; // show state dropdown

function go(){
var naam = document.form1.naam.value;

if (naam=="jan"){alert(naam);



<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Naamloos document</title>

<body onload="weg()">

<img src="../surf you logo/icons/add.png" width="200" height="200" onclick="inlog()"/><img src="../surf you logo/icons/add.png" width="200" height="200" onclick="weg()"/>
<p id="tekstv"> </p>

<form name="form1" id="fff">
<input name="sub" type="submit" class="tekst" id="sub" onclick="go()" value="sub" methode="post"/>
<input type="text" class="tekst" id="naam" size="6" />


<form enctype="multipart/form-data" action="<?php echo $PHP_SELF;?>" method="POST" id="ff" >
<input name="kop" type="text" value="koptekst" size="70" maxlength="70"/>
<br />

<textarea name="bericht" cols="40" rows="20" ></textarea>
<input type="hidden" name="MAX_FILE_SIZE" value="2000000"/>
kies een foto:
niet groter dan 1 mb.
<input name="foto" type="file"id="foto" />

<input name="onder" type="text" value="tekst bij de foto" size="70" maxlength="70"/>
<input name="link" type="text" value="link" size="70" maxlength="70"/>
<input type="radio" name="into" value="blog" />
<input type="radio" name="into" value="work" /> work
<input type="radio" name="into" value="lab" /> lab
<input type="radio" name="into" value="photos" /> photo
<input type="radio" name="into" value="education" /> education
<input type="radio" name="into" value="contact" /> contact
<input type="radio" name="into" value="home" /> home
<input type="radio" name="into" value="onderwijs" /> onderwijs


<input type="submit" value="Submit" />



thanks dp