Anark No.2 - HTML window

I made this 14 years 16 weeks ago




To enable communication between Anark and the HTML page, add the following code


<script for="AnarkClient" event="onExternalCommand(command, value)" language="JavaScript"> 
switch (command)
{
	case "open_window" :
		open_window(value);
	default :
		//	default script
} 

function open_window(myParameters)
{
	var win = eval("window.open("+myParameters+");");
}
</script>

Make sure the IDs for the script and your Anark object match up


eg.


<OBJECT NAME="AnarkClient" ID="AnarkClient" ...

and


<script for="AnarkClient" ...

Needs the Anark browser plugin. Don't know if it even exists any more.