dougcranston
Technical User
If I use an <a> similar to:
<a href=" ME</a>
It delivers me to the appropriate page, but this is a one-way trip off my site.
However, I want to pop up a window and display the same page, and then allow them to close it.
I am calling the falling statement in my page:
<a href="javascript:newWindow('
However, what is displayed when I move my mouse over the link AND when I click the link and it errors, the link in the address field in the browser states:
The function being called is:
****************************************************************
Creates pop up window
***************************************************************/
function newWindow(sURL, sName, w, h) {
// your new window's width
var w = w || 640;
// your new window's height
var h = h || 480;
var sName = sName || ("win" + new Date().getTime());
var ah = window.screen.availHeight;
var aw = window.screen.availWidth;
var l = (aw/2) - (w/2);
var t = (ah/2) - (h/2);
var sAtts = "location=yes" +
",menubar=yes" +
",directories=no" +
",menubar=no" +
",resizable=yes" +
",scrollbars=yes" +
",copyhistory=no" +
",titlebar=no" +
",status=yes" +
",toolbar=no" +
",location=no" +
",height=" + h +
",width=" + w +
",top=" + t +
",left=" + l;
window.open(sURL, sName, sAtts);
}
My guess is that the window.open is doing the conversion.
Does anyone have any suggestions?
Have searched my books on this subject and the web, to no avail.
I really want to pop a window to display the information, and allow then to close it and remain on my site. (The information being displayed is from another server on our intranet.)
Thanks in advance.
Doug Cranston
<a href=" ME</a>
It delivers me to the appropriate page, but this is a one-way trip off my site.
However, I want to pop up a window and display the same page, and then allow them to close it.
I am calling the falling statement in my page:
<a href="javascript:newWindow('
However, what is displayed when I move my mouse over the link AND when I click the link and it errors, the link in the address field in the browser states:
The function being called is:
****************************************************************
Creates pop up window
***************************************************************/
function newWindow(sURL, sName, w, h) {
// your new window's width
var w = w || 640;
// your new window's height
var h = h || 480;
var sName = sName || ("win" + new Date().getTime());
var ah = window.screen.availHeight;
var aw = window.screen.availWidth;
var l = (aw/2) - (w/2);
var t = (ah/2) - (h/2);
var sAtts = "location=yes" +
",menubar=yes" +
",directories=no" +
",menubar=no" +
",resizable=yes" +
",scrollbars=yes" +
",copyhistory=no" +
",titlebar=no" +
",status=yes" +
",toolbar=no" +
",location=no" +
",height=" + h +
",width=" + w +
",top=" + t +
",left=" + l;
window.open(sURL, sName, sAtts);
}
My guess is that the window.open is doing the conversion.
Does anyone have any suggestions?
Have searched my books on this subject and the web, to no avail.
I really want to pop a window to display the information, and allow then to close it and remain on my site. (The information being displayed is from another server on our intranet.)
Thanks in advance.
Doug Cranston