loonatik
05-25-2003, 02:58 AM
I use this script on index.html to open enter.html as a pop-up.
function enter(section){
w = window.open("enter.html","")
w.onload=new function(){
w.menu.location.href = section+".html";
w.main.location.href = section+".html";
}
}
enter.html has two iframes with names 'menu' and 'main'. I open the page with a link on index.html <a href="javascript:enter('profile')">link</a>.
It works locally on my computer, but when I test it online, I get this error: w.menu.location.href is null or not an object
Anyone know whats wrong? It works fine offline.
Thanks!!
function enter(section){
w = window.open("enter.html","")
w.onload=new function(){
w.menu.location.href = section+".html";
w.main.location.href = section+".html";
}
}
enter.html has two iframes with names 'menu' and 'main'. I open the page with a link on index.html <a href="javascript:enter('profile')">link</a>.
It works locally on my computer, but when I test it online, I get this error: w.menu.location.href is null or not an object
Anyone know whats wrong? It works fine offline.
Thanks!!