使用锚标签将html页面重定向到php页面[关闭]

M stuck in redirecting a html page to a php page..and can I perform that using anchor tag? If not can someone give me code to redirect it using some javascript or jquery? I never learnt Javascript or jquery.please help me..
here's the piece of code

<li><a href="previous.php" style="text-decoration:none">Previous</a></li>

javascript code place this in your html head

<script>
  function openPage(){
    window.open("previous.php","_self")
  };
</script>

edit the html with this

 <li><a href="previous.php" style="text-decoration:none" onclick="openPage()">Previous</a></li>

You don't have to use any extra codes in this. Your present code should work.

If not working still, please check and let us know below few.

  1. Where is these files (html and php) located ? (webserver?)
  2. Different folders?
  3. what is the error while clicking on the link you get?

Upon these answers, we may help you..