Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>wanting search results to open in target frame

wanting search results to open in target frame

jamesgraham2k1
06-29-2004, 06:01 AM
Hello everyone i am wanting the search results for my Js search engine to open into a target frame named "main" and i cant figure out how to do it any help is apreciated here is the code below very short




// ---------- script properties ----------


var results_location = "results.html";


// ---------- end of script properties ----------


function search_form(jse_Form) {
if (jse_Form.d.value.length > 0) {
document.cookie = "d=" + escape(jse_Form.d.value);
window.location = results_location;
}
}

glenngv
06-29-2004, 06:13 AM
Change this line:

window.location = results_location;

to:

window.open(results_location, "main");

jamesgraham2k1
06-29-2004, 06:27 AM
Works perfectly thank you


 

TOP

For more info

setting a minimum size
Auto Preview of Image 
Refresh with a query s
JS Validation obsolete
Javascript Pop up func
Slide show transitions
I'm a newbie...please!
how to write coding in
Advanced Debug Info 
.js file doesn't work 

News Archive

Adding Graphic To Text
re-direct form after s
pop up window controls
Clock on homepage - He
passing a param from a
Password Procection wi
document.title in same
focus onload 
Counting Wrong from Ri
Help needed on how to 

Related stories:

How do I get information for selected item of a combo
HTA and frames
Only open new location 1st time.
AIM Auto Change Away Message
disabling right clicks
Auto Preview of Image after selected.
Refresh with a query string

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics