Hi Guys,
Sorry if you have seen this question before. I have tried searching for previous posts, as I know I have seen this example in here before. But it is always the way, when you are in a rush, you cant find it!
Ok, given that JS is not my strong point..this is what I want to do:
Page in frameset, has a simple form with one field asking user to enter a URL. On submit, I want a function that will open a new window with the form submitted URL in it!!
Should be very simple, and I suspect I have done something stupid...can someone confirm and correct this please?
function launchURL(page) {
var page = this.address.extURL.value;
window.open('page', 'newWindow2', "menubar=no"
;
}
<form name="address" onSubmit="Javascript: launchURL(address.value)" action="CallsSamePage.cfm" method="post">
<input type="text" value=" size="75" name="extURL">
<input type="submit" value="GO">
</form>
Any help appreciated,
thanks
Emma
Sorry if you have seen this question before. I have tried searching for previous posts, as I know I have seen this example in here before. But it is always the way, when you are in a rush, you cant find it!
Ok, given that JS is not my strong point..this is what I want to do:
Page in frameset, has a simple form with one field asking user to enter a URL. On submit, I want a function that will open a new window with the form submitted URL in it!!
Should be very simple, and I suspect I have done something stupid...can someone confirm and correct this please?
function launchURL(page) {
var page = this.address.extURL.value;
window.open('page', 'newWindow2', "menubar=no"
}
<form name="address" onSubmit="Javascript: launchURL(address.value)" action="CallsSamePage.cfm" method="post">
<input type="text" value=" size="75" name="extURL">
<input type="submit" value="GO">
</form>
Any help appreciated,
thanks
Emma