I have a link with some javascript inside it.
I need to encode the document location in BAse64, can this be done using javascript?HTML Code:<a href="javascript:void(document.location='http://website.com/?yrl='+document.location)">
Printable View
I have a link with some javascript inside it.
I need to encode the document location in BAse64, can this be done using javascript?HTML Code:<a href="javascript:void(document.location='http://website.com/?yrl='+document.location)">
Therfore would it look like this...
Im not sure of the syntaxHTML Code:<a href="javascript:void(document.location='http://website.com/?yrl='+Base64(document.location))">
So no :pQuote:
To use this object, invoke Base64.encode(data) where data is an arrary of bytes. The base64 encoded data is returned as a string.
Ok, in which case I will take a look when I have a few minutes.
First time i used Javascript without the "copy paste" functions :D
You don't actually expect me to make it easy for you do you? :lol:Quote:
Originally Posted by I_Love_My_Vans
No not at all! I am at college at them moment, with lacking software, and im not bothered to find notepad, thus i will wait til the evening to try this one out.
;)