Link to home
Start Free TrialLog in
Avatar of xenium
xenium

asked on

How to turn a javascript bookmark into a hyperlink online

I have some bookmarks in chrome which dynamically create hyperlinks based on the current day. I would like to do this online instead (so i can just email a link for example). How can I do this?

One possibility raised is to use JSfiddle, but i am not familiar with the commands - can someone help here?

Thanks
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Here you go
https://jsfiddle.net/svermaak/7neq24vL/2/
Click run, then copy link out of textbox
Avatar of xenium
xenium

ASKER

Thanks. I don't want to have to copy paste etc, just a link that works straight off - is this possible?
When the site owner wants such a behavior, the normal thing would be an URL route on the server (http://bla.com/whatever/current).

I don't see your use-case. But maybe one of those URL shorten services can do this for you.
Avatar of xenium

ASKER

thanks i tried a few shortener services and they all say "URL not valid".
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xenium

ASKER

Thanks Michel, that's useful. I'll probably put that on my website then.

I notice that the main file sharing services (OneDrive, Dropbox, Drive) do not seem to allow webpages to be hosted for viewing - I assume this is deliberate.
I am not sure what you mean. If I search for host webpage Dropbox I do get quite a few hits
https://www.google.com/search?q=driopbox+host+webpage
Avatar of xenium

ASKER

Thanks. I guess it can be done but it's not just drag and drop. I'll try the public/site option ...
Avatar of xenium

ASKER

...no luck, looks like dropbox have finally deprecated that feature as they said they would with the entire public folder option.