www.webdeveloper.com
Results 1 to 2 of 2

Thread: Two search box return key conflict

Hybrid View

  1. #1
    Join Date
    Nov 2011
    Posts
    13

    Two search box return key conflict

    In short with IExplorer go to page:

    http://www.aymavisi.org/hikaye/Dostu...%20Cibran.html

    and type something in search box Sitede Ara and hit enter key, you'll see two windows open. How to fix it?



    Google site search code:

    Code:
    <form id="searchbox_007319955694884483973:pnnwgtpio7g0" action="http://www.google.com/search" style="line-height: 100%; font-size:10pt; font-family:Times New Roman; background-color:#444577
    ; text-align:center" target="_blank">
    			<font size="3" face="Tahoma">
    			<input type="hidden" name="cof0" value="FORID:0" />
    			<input type="hidden" name="cx0" value="007319955694884483973:pnnwgtpio7g" />
    
    			</font>
    
    			<div style="padding-top: 2px">
    
    			<font size="3">
    
    			<input name="q" size="16" value=" " style="font-family:Tahoma; text-align:center; vertical-align:middle" /></font><span style="font-size: 7pt"><font size="3"><input type="submit" name="sa" value="Sitede Ara" style="font-family:Tahoma; width:75; height:18; vertical-align:middle" /></font></span></div>
    			</p>
    			<font size="3" face="Tahoma">
    			<input type="hidden" name="cx" value="007319955694884483973:pnnwgtpio7g" />
    			<input type="hidden" name="cof" value="FORID:0" />
    			</font>
    		</form>


    ----------------------------------------------------------------


    Wikipedia script code:

    Code:
    <script language="JavaScript" type="text/javascript">
    document.onkeydown = function(ev) {	
        var key;
        ev = ev || event;
        key = ev.keyCode;
    if (key == 13) {
    search_google();
    }
    }
    function search_google(){ 
    window.open("http://tr.wikipedia.org/wiki/"+document.search.query.value); 
    }
    </script>
    <form name="search" style="text-align: center; background-color:#444577">
    <div style="padding-top: 2px">
    <input type="text" name="query" value="" style="font-family: Tahoma; font-size: 10pt; vertical-align:middle; text-align:center" size="16"><input type="button" value="Sözlük" onClick="search_google()" style="font-family: Tahoma; font-size: 10pt; vertical-align:middle; height:18">
    </div>
    </form>

  2. #2
    Join Date
    Dec 2012
    Posts
    54
    This error does not happen in Fire Fox

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles