开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜