div onclick |
[eluser]jcopling[/eluser]
Given the code example that you have provided, you would be setting the URL to something like: http://<a href="test">test</a> Which is not the desired effect. You would want to product something like: http://yourdomain.com/test You can achieve this with the following code: Code: onClick="window .location .href='<?= base_url();?>/test'" |
Messages In This Thread |
div onclick - by El Forum - 10-09-2008, 08:48 AM
div onclick - by El Forum - 10-09-2008, 08:51 AM
div onclick - by El Forum - 10-09-2008, 08:54 AM
div onclick - by El Forum - 10-09-2008, 08:59 AM
div onclick - by El Forum - 10-09-2008, 09:01 AM
div onclick - by El Forum - 10-09-2008, 09:29 AM
|