May 04
To redirect the browser clientside. You can use javascript. This can be done in different ways.
Like this:
<SCRIPT LANGUAGE="JavaScript">
<!-- Script courtesy of http://www.thetutorial.org
window.location="http://www.thetutorial.org";
// -->
</script>
or with a function like this:
<script language="JavaScript">
<!--Script courtesy of http://www.thetutorial.org
move() ;
function move() {
window.location = 'http://www.yourdomain.com'
}
//-->
</script>
May 01
This can be done in many different ways, for instance like this:
<a href="javascript:history.go(-1)"> Go Back</a>
or with a form like this
<form>
<input type="button" value="Click here to go back"
onClick="history.back()" />
</form>
the history parameter can be set, to for instance 1 or -1 one.. reflecting the movement forward or backward in the history of the browsed pages.
history.go(-1) or history.go(1)
Jan 30
Do you want the text in a textfield to automatically be highlited when the user clicks it?
then use the code:
<input onFocus="javascript:this.select()" type="text" value="test" />
magic is in the onfocusevent, and the call to the method select:
onFocus="javascript:this.select()"
Dec 21
The easyest way to print a page, is to simply write an anchor tag, like so:
<a href="#" onClick="javascript:window.print()"
> Print this Page!</a>
result:
Print this Page!