Hidden url for external page load jQuery php
I load external php page using jQuery plugin with this line of code:
<a href="cat.php" rel="container">Tab 2</a>
How to hide href url (cat.php
) for more security and not show in html sourc开发者_如何转开发e code page?
Example :
<a href="Block12" rel="container">Tab 2</a>
- Block 12 is php code to generate cat.php address
- Block 13 is php code to generate data.php address
etc...
Thanks
Should do:
$("a[href='Block12']").attr('href', 'cat.php');
This will reveal the destination to the user in e.g. a status bar.
精彩评论