Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 06-24-2009, 06:04 PM Form new window
ihsaan's Avatar
Extreme Talker

Posts: 155
Name: Ihsaan
Location: Botswana
Trades: 0
I have this input search field but i want when someone types a query and presses enter the results should appear in a new window. What do i change?

Code:
<form name="searchfrm2_mod" method="post" action="javascript: var searchword = document.searchfrm2_mod.mt_search.value;if(searchword=='search..'){searchword='';}document.location.href= 'http://www.website.com/index.php/Search.html?searchword=' + searchword ">
<div class="search" align="left">
<input id="search" class="inputbox" type="text" onkeypress="if(event.keyCode == 13){var searchword = document.searchfrm2_search.value;if(searchword=='search..'){searchword='';}document.location.href= 'http://www.website.com/index.php/Search.html?searchword=' + searchword }" onfocus="if(this.value=='search..') this.value='';" onblur="if(this.value=='') this.value='search..';" value="search.." size="40"/>
__________________

Please login or register to view this content. Registration is FREE
ihsaan is offline
Reply With Quote
View Public Profile Visit ihsaan's homepage!
 
 
Register now for full access!
Old 06-24-2009, 06:39 PM Re: Form new window
EricReese's Avatar
Super Talker

Posts: 137
Name: Eric Reese
Location: Maryland, USA
Trades: 0
Aren't you supposed to use window.open? In any case, this is the HTML forum not JavaScript, but look at this page:

http://www.pageresource.com/jscript/jwinopen.htm

Cheers
__________________
I am 17 years old.Looking for Web Design Job(s). If interested use my
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Funny Line- "I'll Twitter your Yahoo! until I Google all over your FaceBook :D
EricReese is offline
Reply With Quote
View Public Profile Visit EricReese's homepage!
 
Reply     « Reply to Form new window
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09490 seconds with 12 queries