Debt Consolidation - Myspace Layouts - Web Hosting - WoW Gold - Wordpress Themes

PDA

View Full Version : Open URL


neolegionar
Jun 16th 2007, 12:36 pm
Does anyone know how can i open an URL in the current window using a Java function?

dankenpo
Jun 16th 2007, 9:14 pm
Good question. We solve this with a redirection function:


<html>
<head>
<script language="JavaScript">
<!--
function redirectLink() {
window.location="newlink.php"
}
// -->
</script>
</head>

<body>
<a href="javascript:redirectLink()">Redirect</a>
</body></html>


That should do it!