Click to See Complete Forum and Search --> : I need help submitting a form by clicking on a linked word...


MachInfinity
July 1st, 2002, 01:56 PM
I need some help submitting hidden for fields by clicking on a text link. I have written the javascript to get it to go to the right page and send the correct values, but i can't get it to open in a new window the way i did it.

Here is the code:
<a href="javascript:void(document.myform.submit())">SampleText</a>

what else do i add to have this open in a new window? Thanks in advance for any and all help given!

fka52
July 1st, 2002, 03:21 PM
you could open a frame window, something like this:


function open_frame()
{

msg=open("sampletext.htm", "frameWindow", "toolbar=yes, resize=1, scrollbars=1, width=600, height=300, directories=no, menubar=yes, status=yes");

msg.focus();

}


fareeda

MachInfinity
July 2nd, 2002, 07:42 AM
well thanks for the help. i feel kinda stupid. it is as simple as putting target="_blank" in the form tag. i had no idea that could be done. :o