Find Jobs
Hire Freelancers

496926 Move part of Javascript to body area.

N/A

Selesai
Disiarkan hampir 13 tahun yang lalu

N/A

Dibayar semasa penghantaran
I have a script that works fine, but I need to split it into two parts. The script is located at [login to view URL] 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="[login to view URL]"> 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
ID Projek: 2242842

Tentang projek

1 cadangan
Projek jarak jauh
Aktif 12 tahun yang lalu

Ingin menjana wang?

Faedah membida di Freelancer

Tetapkan bajet dan garis masa anda
Dapatkan bayaran untuk kerja anda
Tuliskan cadangan anda
Ianya percuma untuk mendaftar dan membida pekerjaan
Dianugerahkan kepada:
Avatar Pengguna
I can do this right away
$20 USD dalam 0 hari
4.9 (119 ulasan)
5.9
5.9

Tentang klien

Bendera UNITED STATES
Encinitas, United States
5.0
60
Kaedah pembayaran disahkan
Ahli sejak Feb 28, 2009

Pengesahan Klien

Terima kasih! Kami telah menghantar pautan melalui e-mel kepada anda untuk menuntut kredit percuma anda.
Sesuatu telah berlaku semasa menghantar e-mel anda. Sila cuba lagi.
Pengguna Berdaftar Jumlah Pekerjaan Disiarkan
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuatkan pratonton
Kebenaran diberikan untuk Geolocation.
Sesi log masuk anda telah luput dan telah dilog keluar. Sila log masuk sekali lagi.