CNSA-216-Personal/CH78/MyScript.js
EggMan20339 8d76048d27 init
2024-03-20 14:09:42 -04:00

67 lines
1.4 KiB
JavaScript

// JScript File
function CloseMe()
{
//close without prompt
//var browserName = navigator.appName;
//var browserVer = parseInt(navigator.appVersion);
var ie7 = (document.all && !window.opera && window.XMLHttpRequest) ? true : false;
if (ie7)
{
//This method is required to close a window without any prompt for IE7
window.open('','_parent','');
window.close();
}
else
{
//This method is required to close a window without any prompt for IE6
this.focus();
self.opener = this;
self.close();
}
}
var map = null;
function ContactMe()
{
var features = "width=425,height=275,left=50,top=50,status=yes,resizable=no,menubar=no,scrollbars=yes";
map = window.open('./ContactInfo.htm', 'Help',features);
map.focus()
}
function HelpMe()
{
var features = "width=350,height=200,left=50,top=50,status=yes,resizable=no,menubar=no,scrollbars=yes";
map = window.open('./Help.htm', 'Help',features);
map.focus()
}
var map = null;
function OpenPage(formMe) {
var features = "width=425,height=475,left=50,top=50,status=yes,resizable=yes,menubar=no,scrollbars=yes";
//'./ContactInfo.htm'
map = window.open(formMe, 'Display', features);
map.focus()
}