496926 Move part of Javascript to body area.

I have a script that works fine, but I need to split it into two parts.

The script is located at [url removed, login to view]

Click the button and enter "member" as the password, and you are taken to the shopping cart URL.

Right now, all of the script code is in the <head>. I need to adjust it so the destination URL is moved to the <body> area. So the submit button code is something like this...

<input type="button" value="Buy as Member" onClick="passWord()" url="[url removed, login to view]">

The reason I am doing this is so I can have many "Buy as Member" links on the same page, without having to have many versions of the same script in the <head> section. I am new to Javascript though, so am not sure how to do this.

Please quote on making this change in the code for me.

* P.S. I do realize that doing passwords via Javascript is totally insecure as all the buyer needs to do is view source. The client just wanted a mild deterrent and doesn't care much whether it's secure or not (as they check member purchases against records either way). Of course, if you DO know of a secure (but still simple) way to do this, I'm all ears

Beceriler: Her şey Kabul, Javascript, Alışveriş Sepetleri

Daha fazlasını gör: parts buyer, needs of a buyer, javascript to c++, body works, script head http, javascript change button, code check javascript, javascript change page view, javascript add button, javascript value change, change javascript, source destination, moved url, source code url javascript, javascript client, price javascript, button javascript, simple shopping cart javascript, simple javascript shopping cart, page without url, submit shopping cart, body know, javascript shopping cart code, javascript click page, move member

İşveren Hakkında:
( 60 değerlendirme ) Encinitas, United States

Proje NO: #2242842



I can do this right away

%selectedBids___i_period_sub_7% gün içinde 20%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(119 Değerlendirme)