Code: Select all
<html>
<head>
<script type="text/javascript" language="JavaScript">
function general_formats()
{
window.open('http://www.test.com/general_formats.php');
}
</script>
</head>
<body>
<a href="general_formats.php"><onclick="general_formats(); return false">General Formats</a>
</body>
</html>What i need is , when i click the link , it should direct to general_fomats.php..
please help me to solve it . .any help will be appreciated .