Can HTML link be updated by javascript using function window? -
Can HTML link be updated by javascript using function window? -
i have doubts page:
i browsing on page: http://www.mercadolivre.com.br/
the search button ("buscar") this:
<form id="formsearch" class="ch-form ch-header-form" action="http://www.mercadolivre.com.br/jm/search" method="get" role="search"> <input type="text" class="search" maxlength="60" name="as_word" autocomplete="off" id="query" tabindex="1" autofocus> <input id="btnsearch" type="submit" value="buscar" id="menu:buscad" class="ch-btn ch-btn-small ch-btn-search" accesskey="b" tabindex="2">
so, submit button redirect to: "http://www.mercadolivre.com.br/jm/search"
but page doesn't exist, , when click on link on browser, page redirects "http://lista.mercadolivre.com.br/".
when search lista.mercadolivre... on page, next javascript:
homes.vars = { nickname: "test", searchuri: "http://lista.mercadolivre.com.br/", ...
but question is: if submit input not linked searchuri, how link submitted?
thanks in advance!
that's programmed backend. disabled javascript on browser , tried , still redirects different url. clearly, not done javascript when javascript disabled.
it has got nil related form action. seek alter form action dynamically inspect element , you'll see there no alter result.
instead, grabbing @ backed attribute name of input field. if remove that, widget no longer works.
so happens (i'm assuming)
<?php if(isset(// test whether form submitted or not) { $parameter = $_get["as_word"]; header("location: http://lista.mercadolivre.com.br/".$parameter); } else { ?> <!-- code of site here... --> <?php } ?>
javascript html
Comments
Post a Comment