stow
07-10-2012, 08:51 AM
Hi
This maybe obvious to most of you but please bare with me.
Will using the following javascript affect search/ranking results? If so, what should I do instead?
1. User clicks on a product link to see product details:
function nav( productid ) {
document.form.cat_id.value = productid;
document.form.action = 'index.php';
document.form.submit();
}
<a href="javascript:nav('.$productid.');">'.$productname.'</a>
2. Used on a processing script page. Used to go back to the previous page. (Usually back to a form, from a processing script).
<head>
<script language="javascript">
function go_back() {
document.form_back.action = '<?php echo $prev_url; ?>';
document.form_back.submit();
}
</script>
</head>
<body onload="go_back()">
<form name="form_back" method="POST" action="#">
<input type="hidden" name="message" value="<?php echo $message; ?>" />
</form>
</body>
Thank you in advance.
This maybe obvious to most of you but please bare with me.
Will using the following javascript affect search/ranking results? If so, what should I do instead?
1. User clicks on a product link to see product details:
function nav( productid ) {
document.form.cat_id.value = productid;
document.form.action = 'index.php';
document.form.submit();
}
<a href="javascript:nav('.$productid.');">'.$productname.'</a>
2. Used on a processing script page. Used to go back to the previous page. (Usually back to a form, from a processing script).
<head>
<script language="javascript">
function go_back() {
document.form_back.action = '<?php echo $prev_url; ?>';
document.form_back.submit();
}
</script>
</head>
<body onload="go_back()">
<form name="form_back" method="POST" action="#">
<input type="hidden" name="message" value="<?php echo $message; ?>" />
</form>
</body>
Thank you in advance.