[RESOLVED] Javascript: Link isn't working..?
I'm very new to Javascript. I've been trying to do this for some time now. And i've been hacking my brains out. :cry:
HTML Code:
<a href="javascript:var inputone = "http://www.freewebs.com/vanashajokes/FMA%20Vids.html" + "#E" + prompt("Which episode do you wish to watch?","1");window.location = inputone;">GoTo Episode</a>
The link is there. But the actual link chops off most of the code.
You can visit the website Here
Warning: The website does lag quite a bit, it has 49 embed videos on it.
Thank you, all. :wave:
Re: Javascript: Link isn't working..?
This is because in HTML " character is reserved for attributes. Use single quotes instead within the double quotes. You can't mix HTML and JavaScript, they must be kept separate of each other and thought of separately.
Code:
<a href="#" onclick="var inputone = 'http://www
Re: Javascript: Link isn't working..?