marmot101
07-30-2003, 02:55 PM
Hi, All,
I create a subwindow and want to fill in some field by default, how can I do that?
My code is like:
function openNewWindow() {
win = window.open("Mypage.html", 'smallwin', 'resizable=yes');
win.document.Form_Login.user_name.vaule = "me";
}
When I run above code, it doesn't work. However, if I put this code in
"Mypage.html", it works fine (automatically set the user_name field to "me")
Is this because IE tighten the security rule and forbid javascript to change value of subwindow?
I create a subwindow and want to fill in some field by default, how can I do that?
My code is like:
function openNewWindow() {
win = window.open("Mypage.html", 'smallwin', 'resizable=yes');
win.document.Form_Login.user_name.vaule = "me";
}
When I run above code, it doesn't work. However, if I put this code in
"Mypage.html", it works fine (automatically set the user_name field to "me")
Is this because IE tighten the security rule and forbid javascript to change value of subwindow?