I have succesfully used a javascript to submit a form and go to a new location by clicking a link. But the script does not work in Safari 1.2 anymore.The script will only submit now.
Here's the script:
<form name="test" method="post" action="submit.html" >
<input name="name" type="text">
<a href="java_script_:document.test.submit(); document.location='new_location.html';">Submit & go</a>
<input type="submit" name="Submit" value="Submit">
</form>
The two javascript commands will work seperatly. I've tried the "onclick"-approach instead, does not work neither. I've also tried making a function instead. No luck.
My scripting language of choise is PHP and I don't use much JS, so maybe I'm missing something, but hours of googling haven't revealed any solution.
Any suggestions?
Here's the script:
<form name="test" method="post" action="submit.html" >
<input name="name" type="text">
<a href="java_script_:document.test.submit(); document.location='new_location.html';">Submit & go</a>
<input type="submit" name="Submit" value="Submit">
</form>
The two javascript commands will work seperatly. I've tried the "onclick"-approach instead, does not work neither. I've also tried making a function instead. No luck.
My scripting language of choise is PHP and I don't use much JS, so maybe I'm missing something, but hours of googling haven't revealed any solution.
Any suggestions?