I am trying to open a local html file from a running html file.In simple words, when I click on a button in my html page it should open another html page which is stored on my computer only. I have tried using href
but it is not working.I am using onclick
so when i click on the button it opens a new window but the html is not loaded on the page.I can only use html or Java Script.
Here is what I am doing
<html>
<head>
<script lang="Java-Script">
function func()
{
var m='<a href="newone.html" target="-blank"></a>';
document.write(m);
}
</script>
</head>
<body>
<input type="Submit" value="click" onclick="func()">
</body>
</html>