R
R45six
Really can't figure this out, would appreciate some help...
Have a textbox in a form which user types in a url link.
When they click a button I'd like it to open a new window,
and attempt to display the link they've typed in the textbox.
I've got the button calling a javascript with onclick,
but I can't get the window that opens to accept the dynamic url.
The textbox name is txtlink.
var thelink = txtlink.value;
testlinkwindow = window.open();
Is there a way to get the variable as the url parameter of open() ?
The other thing I've tried is setting the location.href of the child window,
but that doesn't work either. :-(
eg
testlinkwindow = window.open();
testlinkwindow.location.href= txtlink.value;
Please can you help ?
R.
Have a textbox in a form which user types in a url link.
When they click a button I'd like it to open a new window,
and attempt to display the link they've typed in the textbox.
I've got the button calling a javascript with onclick,
but I can't get the window that opens to accept the dynamic url.
The textbox name is txtlink.
var thelink = txtlink.value;
testlinkwindow = window.open();
Is there a way to get the variable as the url parameter of open() ?
The other thing I've tried is setting the location.href of the child window,
but that doesn't work either. :-(
eg
testlinkwindow = window.open();
testlinkwindow.location.href= txtlink.value;
Please can you help ?
R.