...

View Full Version : Passing variables to another page AND disabling the toolbar



xbuddy
01-15-2004, 04:03 AM
Passing variables to another page AND disabling the toolbar

I know how to do both of the above seperately, but I haven't found a way to do them both together. To disable the toolbar and other features I use the following code:

var Max = window.open('counter.htm', 'Max', 'top=0,left=0,height=600, width=800, toolbar=no,directories=no,status=no,scrollbars=no,resizable=no,menubar=no');





To pass variables to another page I use the following code:

function go(){
var numb1=100;
var numb2= 200;
var numb3=300;
location.href = "counter.htm?n1=" + numb1+ "&n2=" + numb2 + "&n3=" + numb3;
}



So far, I have not found a way to combine both features. Any ideas on how to do both?

A1ien51
01-15-2004, 04:21 AM
hmmmm,,,,,,,

function go(){
var numb1=100;
var numb2= 200;
var numb3=300;
locationURL = "counter.htm?n1=" + numb1+ "&n2=" + numb2 + "&n3=" + numb3;

var Max = window.open(locationURL, 'Max', 'top=0,left=0,height=600, width=800, toolbar=no,directories=no,status=no,scrollbars=no,
resizable=no,menubar=no');

}

xbuddy
01-16-2004, 01:26 AM
That took care of my problem. I am very happy. I found that I had to change it a little bit. I had to put in the "target=template". I'm not certain why, but it kept on coming up with an error without it.

Again, thanks, your solution solved my problem.


var target="template"
var w = window.open(locationURL, target, "top=0,left=0,height=768, width=1024, toolbar=no,directories=no,status=no,scrollbars=no,resizable=no,menubar=no");



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum