Hi,
I've made my own protocol named "test1:"
I've made it so that if you type "test1:" in Internet explorer's address bar notepad opens.
On my web page I have the following code:
Code works fine on my computer, but it's the only computer in the world with the protocol “test1”.
Just before calling navigate, how do I make it detect if the protocol "test1" exists or not? Then I could easily make it redirect to my "error.html" page if it doesn't.
Hope that makes sense, help would be appreciated and thanks in advance...
I've made my own protocol named "test1:"
I've made it so that if you type "test1:" in Internet explorer's address bar notepad opens.
On my web page I have the following code:
Code:
<script language="javascript">
<!--
function OpenNotepad()
{
navigate("test1:");
}
-->
</script>
<p><a href="javascript:OpenNotepad()">Notepad</a>
Code works fine on my computer, but it's the only computer in the world with the protocol “test1”.
Just before calling navigate, how do I make it detect if the protocol "test1" exists or not? Then I could easily make it redirect to my "error.html" page if it doesn't.
Hope that makes sense, help would be appreciated and thanks in advance...