onclick() function - how to link to page?
Posted: Tue Feb 02, 2010 1:00 am
this is my html page..
When i click ' General Formats ' , a window is opened , i dont need that .
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 .
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 .