Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how come my script only works for me?!

Status
Not open for further replies.

estesflyer

Programmer
Dec 19, 2000
284
US
I dont get this, the script works JUST FINE for me! and when my friends view it, it doesnt work! i have medium security, and it still works, but it just for some reason doesnt work fro them!

you can see the script in action here






<html>
<head>
<title>Search Forum</title>
<script language=&quot;javascript&quot;>
<!--
function search()
{
var searchsubject=document.formsearch.searchsubject.value;
var newwin=window.open('about:blank','newwin','menubar,width=800,height=600,left=0,top=0');
var lycos=' + searchsubject;
var altavista=' + searchsubject;
var google=' + searchsubject;
newwin.document.write('<html>');
newwin.document.write('<head>');
newwin.document.write('<title>Search Page</title>');
newwin.document.write('</head>');
newwin.document.write('<frameset>');
newwin.document.write('<frameset rows=&quot;33%,33%,33%&quot;>');
newwin.document.write('<frame name=&quot;page1&quot; src=&quot;' + lycos + '&quot;>');
newwin.document.write('<frame name=&quot;page2&quot; src=&quot;' + altavista +'&quot;>');
newwin.document.write('<frame name=&quot;page3&quot; src=&quot;' + google +'&quot;>');
newwin.document.write('</frameset>');
newwin.document.write('</frameset>');
newwin.document.write(&quot;</html>&quot;);
}
//-->
</script>
</head>
<body>
<form name=&quot;formsearch&quot;>
<b>Search for:</b>
<input size=&quot;30&quot; name=&quot;searchsubject&quot; type=&quot;textbox&quot;>
<input size=&quot;55&quot; type=&quot;button&quot; value=&quot;search&quot; onClick=&quot;search()&quot;
</body>
</html>




hope all goes well!!

- Rusty
 
You don't need to post on two different forums here ... they're both busy and it won't take long to get an answer.

Greg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top